Skip to content

bttmly/make-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

make-module Build Status codecov.io

Create a node module from a string of code, and maybe a file name.

npm install make-module

var file = path.join(__dirname, "./some-module.js");
var code = fs.readFileSync(file).toString();
var someModule = makeModule(code, file);
// find `module.exports` at `someModule.exports`

About

make node modules from strings of code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published