Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Collect Node globals & core APIs under one object.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 node-api.js
Octocat-spinner-32 package.json
README.md

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.

Installation

npm install node-api

Usage

In any module:

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

License

MIT licensed; see LICENSE.txt for full text.

Something went wrong with that request. Please try again.