File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const req = require('require-all-root')
1717const lib = req (' /lib' )
1818```
1919
20- ## Usage as a universal replacement of require()
20+ ## Usage as a require() replacement
2121
2222` require-all-root ` can import individual files, modules and packages from ` /node_modules ` .
2323
@@ -43,12 +43,17 @@ const data = req('/data')
4343To avoid ` require('require-all-root') ` in multiple files, you can setup it ones in а ` global ` object
4444``` js
4545// In start.js
46- global .reqall = require (' require-all-root' )
46+ global .req = require (' require-all-root' )
4747
4848// In /some/path.js
49- const lib = reqall (' /lib' )
49+ const lib = req (' /lib' )
5050```
5151
52+ ## Changelog
53+
54+ ** 1.0.1**
55+ - Ensure module inner errors are thrown
56+
5257## Thanks
5358- ** Felix Geisendörfer** for [ require-all] ( https://github.com/felixge/node-require-all )
54- - ** Chris Morrell** for [ app-root-path] ( https://github.com/inxilpro/node-app-root-path )
59+ - ** Chris Morrell** for [ app-root-path] ( https://github.com/inxilpro/node-app-root-path )
You can’t perform that action at this time.
0 commit comments