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

10 lines (8 loc) 266 B
'use strict'; process.stdin.pipe(require('fs').createWriteStream(__dirname + '/output.txt')).on('close', function () { setTimeout(function () { process.exit(13); }, 500); }); process.stdout.write('output written'); process.stderr.write('error log exists');