File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ rewire does **not** load the file and eval the contents to emulate node's requir
13
13
Furthermore rewire comes also with support for various client-side bundlers (see [ below] ( #client-side-bundlers ) ).
14
14
15
15
[ ![ Build Status] ( https://secure.travis-ci.org/jhnns/rewire.png?branch=master )] ( http://travis-ci.org/jhnns/rewire )
16
+ [ ![ Dependency Status] ( http://david-dm.org/nisaacson/rewire/status.png )] ( http://david-dm.org/nisaacson/rewire )
17
+ Dependency tracking by [ David] ( http://david-dm.org/ )
16
18
17
19
<br />
18
20
@@ -36,11 +38,11 @@ var fs = require("fs"),
36
38
http = require (" http" ),
37
39
someOtherVar = " hi" ,
38
40
myPrivateVar = 1 ;
39
-
41
+
40
42
function readSomethingFromFileSystem (cb ) {
41
43
// But no scoped variables
42
44
var path = " /somewhere/on/the/disk" ;
43
-
45
+
44
46
console .log (" Reading from file system ..." );
45
47
fs .readFile (path, " utf8" , cb);
46
48
}
You can’t perform that action at this time.
0 commit comments