This commit is contained in:
Richard Littauer 2017-05-08 15:21:31 +02:00
parent d6dbfd345c
commit 28d16eea64

12
cat.js Normal file
View File

@ -0,0 +1,12 @@
#! /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)
})