1.0.0 • Published 3 years ago
forcereq v1.0.0
ForceReq()
Require module but with error handeling
Instalation
$ npm i forcereq
Using ForceReq()
// ForceReq -----------------------------
const { ForceReq } = require("forcereq");
// Other modules ------------------------
const { BigWiggle } = ForceReq("bigwiggle") // no error
const data = ForceReq("./cutecat.json") // Console: Err ForceReq(): The file "./cutecat.json" could not be loaded.
1.0.0
3 years ago