Skip to content

Commit

Permalink
Merge pull request #7 from Conduitry/patch-1
Browse files Browse the repository at this point in the history
mention additional arguments in readme
  • Loading branch information
Rich-Harris committed May 27, 2019
2 parents 8ecc0d4 + 0b6a189 commit 6065e9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ npm i estree-walker
var walk = require( 'estree-walker' ).walk;
var acorn = require( 'acorn' );

ast = acorn.parse( sourceCode, options ); // https://github.com/marijnh/acorn
ast = acorn.parse( sourceCode, options ); // https://github.com/acornjs/acorn

walk( ast, {
enter: function ( node, parent ) {
enter: function ( node, parent, prop, index ) {
// some code happens
},
leave: function ( node, parent ) {
leave: function ( node, parent, prop, index ) {
// some code happens
}
});
Expand All @@ -42,4 +42,4 @@ None of which should be taken as criticism of estraverse, which has more feature

## License

MIT
MIT

0 comments on commit 6065e9c

Please sign in to comment.