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

9 lines
216 B
JavaScript
Raw Normal View History

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