estraverse-fb

1.3.2last stable release 8 years ago
Complexity Score
Low
Open Issues
5
Dependent Projects
380
Weekly Downloadsglobal
57,862

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

estraverse-fb

Drop-in for estraverse that enables traversal over React’s JSX and Flow nodes using monkey-patching technique.

You can use estraverse-fb in two possible ways:

  • by default, you just require it and it injects needed keys into your installed version of estraverse (it’s installed automatically if you don’t have it yet):

    var estraverse = require('estraverse-fb');
    /* same as:
        require('estraverse-fb');
        var estraverse = require('estraverse');
    */
    
    estraverse.traverse(ast, {
        enter: ...,
        leave: ...
    });
    
  • alternatively, you can use it manually for selected traversals:

    var jsxKeys = require('estraverse-fb/keys');
    
    estraverse.traverse(ast, {
        enter: ...,
        leave: ...,
        keys: jsxKeys
    })
    

Check out [estraverse page](https://github.com/Constellation/estraverse) for detailed usage.

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
3.20
Test Coverage
No Data
Follows Semver
Yes
Github Stars
17
Dependenciestotal
4
DependenciesOutdated
3
DependenciesDeprecated
0
Threat Modelling
No
Repo Audits
No

Learn how to distribute estraverse-fb in your own private NPM registry

npm config set registry  https://npm.cloudsmith.com/owner/repo
Processing...
Done
npm install estraverse-fb
Processing...
Done

7 Releases

NPM on Cloudsmith

Getting started with NPM on Cloudsmith is fast and easy.