Skip to content

Commit 697d628

Browse files
authored
Update README.md
1 parent 8fad7d7 commit 697d628

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const req = require('require-all-root')
1717
const 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')
4343
To 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)

0 commit comments

Comments
 (0)