@otoniel19/require-all
v1.0.2
Published
require-all import all from a module
Downloads
5
Readme
require-all
import all from a module
- usage
const reqAll = require("@otoniel19/require-all");
reqAll("fs"); // inform the module name
const test = readFileSync("./test.js").toString();
console.log(test);
/*
will output:
const reqAll = require("./index");
reqAll("fs");
readFile("./test.js", (err, dt) => {
console.log(dt.toString());
});
*/