remove-try-require
Transform stream to remove require calls from inside a try{} statement
Last updated 12 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (12 years ago)

1 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |