UNPKG
@cobalt-engine/co-browserify
Version:
latest (13.1.1)
13.1.1
browser-side require() the node way
github.com/substack/node-browserify
substack/node-browserify
@cobalt-engine/co-browserify
/
test
/
tr_order
/
replace_bbb.js
12 lines
(10 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
through =
require
(
'through2'
);
module
.
exports
=
function
(
file
) {
return
through
(
function
(
buf, enc, next
) {
this
.
push
(
String
(buf) .
replace
(
/AAA/g
,
'6'
) .
replace
(
/BBB/g
,
'50'
) );
next
(); }) }