Requiring Native(Core) Modules

  • Native module is what's in the lib
  • Those are Javascript files that fetch C++ feature or pure Javascript you can wrote yourself
  • require('./') without ./ , node will assume it's native module
  • look for api doc
  • don't name your module the same as native module

results matching ""

    No results matching ""