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

9 lines
214 B
JavaScript
Executable File

#!/usr/bin/env node
import fs from 'node:fs'
import { render } from '../dist/index.js'
const resume = JSON.parse(fs.readFileSync(process.stdin.fd, 'utf-8'))
const html = render(resume)
process.stdout.write(html)