[Pkg-javascript-commits] [node-detective] 59/119: document opts.isRequire

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-detective.

commit 9d6a813e970945e7d5b2de81a8800b90a77190f5
Author: James Halliday <mail at substack.net>
Date:   Sat Sep 14 19:38:19 2013 +0100

    document opts.isRequire
---
 readme.markdown | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/readme.markdown b/readme.markdown
index 8181801..df88da4 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -60,6 +60,9 @@ with `opts.word`.
 You can also specify `opts.nodes = true` in order to include a "nodes" array 
 which contains an AST node for each of the require() calls.
 
+You can use `opts.isRequire(node)` to return a boolean signifying whether an
+esprima AST `node` is a require call.
+
 # install
 
 With [npm](https://npmjs.org) do:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git



More information about the Pkg-javascript-commits mailing list