@otoniel19/require-all
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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());
   });
*/

Readme

Keywords

Package Sidebar

Install

npm i @otoniel19/require-all

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

12.1 kB

Total Files

6

Last publish

Collaborators

  • otoniel