README
safe-node-require
Install
yarn add safe-node-require
Usage
const req = require('safe-node-require')
// foo.js does not exist
req('./foo')
//=> null
// bar.js exists
req('./bar')
//=> {} the module
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
safe-node-require © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin