Skip to content

Commit 16d2147

Browse files
committed
expose acorn/dist/walk
1 parent aa2192c commit 16d2147

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ And the following options have different defaults from acorn, to match Node modu
3737
- `allowHashBang: true`
3838
- `allowReturnOutsideFunction: true`
3939

40+
```js
41+
var walk = require('acorn-node/walk')
42+
```
43+
44+
The Acorn syntax tree walker. Comes preconfigured for the syntax plugins if necessary.
45+
See the [acorn documentation](https://github.com/acornjs/acorn#distwalkjs) for details.
46+
4047
## License
4148

4249
[Apache-2.0](LICENSE.md)

walk.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var walk = require('acorn/dist/walk')
2+
3+
module.exports = walk

0 commit comments

Comments
 (0)