standard-readme/cat.js

13 lines
245 B
JavaScript
Raw Normal View History

2017-05-08 13:21:31 +00:00
#! /usr/bin/env node
const fs = require('fs')
const path = require('path')
fs.readFile(path.join(process.cwd(), './spec.md'), {encoding: 'utf8'}, (err, file) => {
if (err) {
console.log('Unable to find file')
}
console.log(file)
})