refactor: use shell
This commit is contained in:
parent
f9fa67cabb
commit
8e271642f9
12
cat.js
12
cat.js
@ -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)
|
||||
})
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "standard-readme-spec",
|
||||
"version": "1.1.3",
|
||||
"lockfileVersion": 1
|
||||
}
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user