Skip to content
Collect Node globals & core APIs under one object.
Find file
Latest commit 68b15c4 @laurie71 Initial Commit
Failed to load latest commit information.
LICENSE.txt Initial Commit Initial Commit
node-api.js Initial Commit
package.json Initial Commit

node-api: lazy-require core modules

This is a trivial module that enables you access core Node modules without the need to require() them. It exports a single object with properties corresponding to the core module names. The properties perform a require() the first time they are accessed.


npm install node-api


In any module:

var node = require('node-api');
node.util.debug('done! :-]');


MIT licensed; see LICENSE.txt for full text.

Something went wrong with that request. Please try again.