Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3axap4ehko/module-runtime
https://github.com/3axap4ehko/module-runtime
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/3axap4ehko/module-runtime
- Owner: 3axap4eHko
- Created: 2017-01-10T15:37:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-10T16:20:49.000Z (almost 8 years ago)
- Last Synced: 2024-09-20T13:18:05.057Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Module Runtime
Tiny library to create runtime node modules
## Usage
create module
``` javascript
// index.js
const moduleRuntime = require('module-runtime');moduleRuntime('add', `
module.exports = function(a, b) {
return a + b;
};
`);```
use module
``` javascript
const add = require('add');console.log(add(1,2)); // 3
```## LICENSE
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2017-present Ivan Zakharchenko