refactor: use shell

This commit is contained in:
Richard Littauer 2017-11-14 15:08:30 -05:00
parent f9fa67cabb
commit 8e271642f9
4 changed files with 9 additions and 14 deletions

12
cat.js
View File

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

3
cat.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/bash
cat spec.md

5
package-lock.json generated Normal file
View File

@ -0,0 +1,5 @@
{
"name": "standard-readme-spec",
"version": "1.1.3",
"lockfileVersion": 1
}

View File

@ -2,8 +2,7 @@
"name": "standard-readme-spec",
"version": "1.1.3",
"description": "Readme Standard Style",
"main": "cat.js",
"bin": "cat.js",
"bin": "cat.sh",
"repository": {
"type": "git",
"url": "git+https://github.com/RichardLitt/standard-readme.git"