Skip to content

3axap4eHko/module-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published