deproptypeify

1.0.0 • Public • Published

deproptypeify

Searches for .propTypes and removes the block, because ifdef is annoying.

Install

npm install deproptypeify

browserify

browserify your_file.js -t deproptypeify

included files

If you wish to run deproptypeify on files with extensions other than *.js *.jsx *.es6, add extension options. The API mirrors how Browserify handles adding extra extensions:

compile-to-js languages should be preprocessed before running through this transform, as it makes use of a JS AST parser

via CLI

browserify your_file.js -t [ deproptypeify --extension html --extension haml ]

via JS

.transform({ extensions: ['html', 'haml'] }, deproptypeify)

MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i deproptypeify

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • probablyup