json-theme-even-fork/bin/cli.js

9 lines
205 B
JavaScript
Raw Normal View History

2021-03-06 14:46:55 +01:00
#!/usr/bin/env node
const fs = require('fs')
const { render } = require('..')
const resume = JSON.parse(fs.readFileSync(process.stdin.fd, 'utf-8'))
const html = render(resume)
process.stdout.write(html)