Skip to content
Browse files

document passing opts to esprima and a bump

  • Loading branch information...
1 parent a9d1ebe commit d9e8489f8df3b14f1ee959b2a2a17ad6f7f39cc9 @substack committed May 14, 2012
Showing with 8 additions and 1 deletion.
  1. +7 −0 README.markdown
  2. +1 −1 package.json
View
7 README.markdown
@@ -65,6 +65,13 @@ pre-traversal, so children get called before their parents.
Performing a pre-traversal makes it easier to write nested transforms since
transforming parents often requires transforming all its children first.
+If `typeof src === 'object'`, then `src.source` will be used for the source and
+the rest of the options will be passed directly along to esprima except for
+`'range'` which is always turned on because falafel needs it.
+
+Some of the options you might want from esprima includes:
+`'loc'`, `'raw'`, `'comments'`, `'tokens'`, and `'tolerant'`.
+
nodes
=====
View
2 package.json
@@ -1,7 +1,7 @@
{
"name" : "falafel",
"description" : "transform the ast on a recursive walk",
- "version" : "0.0.1",
+ "version" : "0.0.2",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/node-falafel.git"

0 comments on commit d9e8489

Please sign in to comment.
Something went wrong with that request. Please try again.