all-builtins

0.1.0 • Public • Published

Require all node builtins to a single namespace. Infulenced by modmod

Install

npm install all-builtins

Usage

 
var $ = require('all-builtins');
 
// One can use $.<builtinName> to access the builtin.
 
console.log(Object.keys($));
 
// Would log:
/*
[ 'assert',
  'buffer',
  'child_process',
  'cluster',
  'crypto',
  'dgram',
  'dns',
  'domain',
  'events',
  'fs',
  'http',
  'https',
  'net',
  'os',
  'path',
  'punycode',
  'querystring',
  'readline',
  'stream',
  'string_decoder',
  'tls',
  'tty',
  'url',
  'util',
  'vm',
  'zlib' ]
 */

Readme

Keywords

Package Sidebar

Install

npm i all-builtins

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • hemanth