UNPKG

412 BPlain TextView Raw
1#!/usr/bin/env node
2const path = require('path');
3const fs = require('fs');
4const { embellish } = require('../lib');
5const out = require('out');
6
7const filename = path.resolve(process.argv[2]);
8
9embellish({ type: 'file', filename }).then(content => {
10 fs.writeFile(filename, content, 'utf-8', err => {
11 if (err) {
12 console.error(err);
13 }
14
15 out('\n!{bold}README embellishment complete');
16 });
17});