UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

16 lines (12 loc) 265 B
var tmp = require('../lib/tmp'), spawn = require('./spawn'); var graceful = spawn.arg; if (graceful) { tmp.setGracefulCleanup(); } spawn.tmpFunction(function (err, name) { spawn.out(name, function () { throw new Error('Thrown on purpose'); }); });