Tiny library to create runtime node modules
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
The MIT License Copyright (c) 2017-present Ivan Zakharchenko