node-browser-builtins
Provides the Browserify builtins through a single package dependency.
Last updated 3 years ago by guybedford .
MIT · Original npm · Tarball · package.json
$ cnpm install node-browser-builtins 
SYNC missed versions from official npm registry.

node-browser-builtins

Provides the Browserify builtins through a single package dependency.

Exports a single resolver method.

const resolveBuiltin = require('node-browser-builtins');
resolveBuiltin('fs'); // -> "@empty"
resolveBuiltin('zlib'); // -> "/<..>/node-browser-builtins/node_modules/browserify-zlib/lib/index.js"
resolveBuiltin('asdf'); // throws code "MODULE_NOT_FOUND" error

Resolution is done lazily so there is no resolve boot cost for requiring this dependency.

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (22)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |