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

9 lines
214 B
JavaScript
Raw Normal View History

2021-03-06 14:46:55 +01:00
#!/usr/bin/env node
2023-01-31 02:37:41 +01:00
import fs from 'node:fs'
import { render } from '../dist/index.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)