Created
March 18, 2016 22:27
-
-
Save juniorbird/58fcb15a0315ffe7aa52 to your computer and use it in GitHub Desktop.
Minty Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const minty = require('./index.js'); | |
const path = require('path'); | |
function hello(a,b,c) { | |
console.log(a); | |
var d = b + c; | |
console.log(d); | |
} | |
minty.file(path.join(__dirname, '/lib/test.js')); | |
var mint = minty.wrap(hello); | |
mint(1,2,3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment