[Pkg-javascript-commits] [node-module-deps] 273/444: document packageFilter
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 9cb52db1ca6c83c6b2dfa31c73cd12e31d6ddd03
Author: James Halliday <mail at substack.net>
Date: Mon Jul 21 23:30:28 2014 -0700
document packageFilter
---
readme.markdown | 3 +++
1 file changed, 3 insertions(+)
diff --git a/readme.markdown b/readme.markdown
index 4432d46..7696f72 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -76,6 +76,9 @@ package.json at all.
If defined, `opts.filter(id)` should return truthy for all the ids to include
and falsey for all the ids to skip.
+* `opts.postFilter` - a function (id, file, pkg) that gets called after `id` has
+been resolved. Return false to skip this file.
+
* `opts.packageFilter` - transform the parsed package.json contents before using
the values. `opts.packageFilter(pkg, dir)` should return the new `pkg` object to
use.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list