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 = const outputString =
Node.js streams:
const removeReactPropTypes = fs
Browserify:
browserify -g remove-react-proptypes/stream -e inputjs > outputjs