module-runtime

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i module-runtime

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • 3axap4ehko