Separate out command line and I/O into cli.js which is executable as 'jstize'
[jstize.git] / cli.js
1 #!/usr/bin/env node
2
3 let fs = require('fs')
4 let jstize = require('./jstize')
5
6 fs.writeSync(
7   1,
8   jstize(fs.readFileSync(0, {encoding: 'utf-8'})),
9   {encoding: 'utf-8'}
10 )