Skip to content

Commit 34dd4c6

Browse files
committed
bin support added
1 parent a5b4a16 commit 34dd4c6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
const chalk = require("chalk");
24
const vorpal = require("./utils/vorpal");
35

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"node-fetch": "^2.6.1",
1111
"vorpal": "^1.12.0"
1212
},
13+
"bin": {
14+
"hnez": "index.js"
15+
},
1316
"repository": {
1417
"url": "https://github.com/amaan-ahmad/hashnode-easy",
1518
"type": "git"

0 commit comments

Comments
 (0)