UNPKG
browserify-precompiled
Version:
latest (5.9.1-precompiled2)
5.9.1-precompiled2
browser-side require() the node way
github.com/substack/node-browserify
substack/node-browserify
browserify-precompiled
/
test
/
node_modules
/
plugin-foo
/
index.js
10 lines
(7 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
through =
require
(
'through2'
);
module
.
exports
=
function
(
b, opts
) {
var
stream =
through
(
function
(
) {},
function
(
) {}); stream.
push
(opts.
msg
); stream.
push
(
null
); b.
pipeline
.
get
(
'wrap'
).
splice
(
0
,
1
,stream); };