Run: yarn link
or npm link
Run: my-lib ...args
in terminal
Created
July 16, 2020 00:44
-
-
Save chrisgfortes/6df0364995e79c85f216cb7613e81dfa to your computer and use it in GitHub Desktop.
Creating lib as command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// command line args | |
const args = process.argv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "bash-terminal", | |
"main": "index.js", | |
"bin": { | |
"my-lib": "./bin/index.js" | |
}, | |
"dependencies": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment