remove-react-proptypes
Remove React propTypes.
Last updated 4 years ago by goto-bus-stop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install remove-react-proptypes 
SYNC missed versions from official npm registry.

remove-react-proptypes

Remove React PropTypes. Removes all occurrences of <component>.propTypes = <types>.

Installation

npm install --save-dev remove-react-proptypes

Or install the CLI globally:

npm install --global remove-react-proptypes

Usage

CLI:

remove-react-proptypes input.js > output.js
# or pipe to stdin:
cat input.js | remove-react-proptypes | uglifyjs -o output.js

Node:

const removeReactPropTypes = require('remove-react-proptypes')
const outputString = removeReactPropTypes(inputString)

Node.js streams:

const removeReactPropTypes = require('remove-react-proptypes/stream')
fs.createReadStream('input.js')
  .pipe(removeReactPropTypes())
  .pipe(fs.writeReadStream('output.js'))

Browserify:

browserify -g remove-react-proptypes/stream -e input.js > output.js

License

MIT

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

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

Copyright 2014 - 2016 © taobao.org |