remove-try-require
Transform stream to remove require calls from inside a try{} statement
Last updated 13 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install remove-try-require 
SYNC missed versions from official npm registry.

remove-try-require Flattr this!experimental

Transform stream to remove require calls from inside a try{} statement. Useful for modules looking for browserify compatability while using the try/catch optional dependency trick.

Usage

remove-try-require

remove-try-require is jsut a browserify transform stream, so you can use it like so:

browserify -t remove-try-require

Or by including it in your project's package.json file:

{
  "browserify": {
    "transform": [
      "remove-try-require"
    ]
  }
}

You can also find an AST transform that plays nice with ast-pipeline at require('remove-try-require/ast').

License

MIT. See LICENSE.md for details.

Current Tags

  • 0.0.0                                ...           latest (13 years ago)

1 Versions

  • 0.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 2
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE