module-runtime
v0.0.1
Published
Tiny library to create runtime node modules
Downloads
5
Readme
Module Runtime
Tiny library to create runtime node modules
Usage
create module
// index.js
const moduleRuntime = require('module-runtime');
moduleRuntime('add', `
module.exports = function(a, b) {
return a + b;
};
`);
use module
const add = require('add');
console.log(add(1,2)); // 3
LICENSE
The MIT License Copyright (c) 2017-present Ivan Zakharchenko