From 8e271642f9f45129483a33fdb35467272f8a25fd Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Tue, 14 Nov 2017 15:08:30 -0500 Subject: [PATCH] refactor: use shell --- cat.js | 12 ------------ cat.sh | 3 +++ package-lock.json | 5 +++++ package.json | 3 +-- 4 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 cat.js create mode 100755 cat.sh create mode 100644 package-lock.json diff --git a/cat.js b/cat.js deleted file mode 100644 index 8235a44..0000000 --- a/cat.js +++ /dev/null @@ -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) -}) diff --git a/cat.sh b/cat.sh new file mode 100755 index 0000000..35c9aa3 --- /dev/null +++ b/cat.sh @@ -0,0 +1,3 @@ +#! /bin/bash + +cat spec.md diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..df0a42f --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "standard-readme-spec", + "version": "1.1.3", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json index cce1c93..8153553 100644 --- a/package.json +++ b/package.json @@ -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"