[Pkg-javascript-commits] [node-module-deps] 414/444: update document to describe `opts._flags`
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:19 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 5ab692264eac31d596f148fdfcf2aa202a7b669f
Author: Michael Williams <michael.williams at enspiral.com>
Date: Mon Dec 28 03:15:36 2015 +1300
update document to describe `opts._flags`
---
readme.markdown | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/readme.markdown b/readme.markdown
index b9a5c79..8a1566b 100644
--- a/readme.markdown
+++ b/readme.markdown
@@ -150,7 +150,7 @@ to a module that is expected to follow this format:
``` js
var through = require('through2');
-module.exports = function (file) { return through() };
+module.exports = function (file, opts) { return through() };
```
You don't necessarily need to use the
@@ -206,6 +206,11 @@ and `ggg` gets `{"y":4}`:
}
```
+Options sent to the module-deps constructor are also provided under
+`opts._flags`. These options are sometimes required if your transform
+needs to do something different when browserify is run in debug mode, for
+example.
+
# usage
```
--
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