Skip to content

Instantly share code, notes, and snippets.

@dominictarr
Created Oct 5, 2011
Embed
What would you like to do?
use ƒ instead of function
var _compile = module.constructor.prototype._compile
module.constructor.prototype._compile = function (content, filename) {
content = content.replace(/ƒ/, 'function').replace(//, 'return ')
return _compile(content, filename)
}
require('./florin')
require('./using-florin')
var florin = ƒ () {
'florinscript!'
}
console.error(florin())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment