Sha256: 92e0cc8a7eda66295c188bd4a1249952f2a2f0d5c110e9762319139f33ecf010
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
var fs = require("fs"); var rest = (require("../sequence")).rest;; var str = (require("../runtime")).str;; var readFromString = (require("../reader")).readFromString;; var compileProgram = (require("../compiler")).compileProgram;; global.__verbose__ = 0 <= process.argv.indexOf("--verbose"); var transpile = function transpile(source, uri) { return "" + (compileProgram(rest(readFromString("" + "(do " + source + ")", uri)))) + "\n"; }; exports.transpile = transpile; (require.extensions || 0)[".wisp"] = function(module, uri) { return module._compile(transpile(fs.readFileSync(uri, "utf8")), uri); }
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-wisp-source-0.7.0 | vendor/node_modules/wisp/engine/node.js |
ruby-wisp-source-0.7.0 | vendor/try/node_modules/~wisp/engine/node.js |