diff --git a/README.md b/README.md index 13f5b351..1a3a5f52 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ const ast = parse(JSON_BUFFER, {verbose: true, junker: true}); assert(ast instanceof AST.JsonDocument); const visitor = new MyVisitor(); -ast.visit(visitor); +ast.accept(visitor); assert.deepEqual(visitor.comments, [" Some comment"]); // One can also the `JsonNode.toJSON` static method to convert to a JavaScript object diff --git a/package.json b/package.json index 124438b6..a75f9ce7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "name": "json-ast", "version": "2.1.7", + "engines": { + "node": "^4.9.1", + "npm": "^2.15.11" + }, "description": "JSON parser AST utilities", "author": "Romain Gaucher", "homepage": "https://github.com/neuroo/json-ast",