A small command line utility to list a user's public gists
Lists a user's public gists. On subsequent runs will only list a previously queried user's gists that have been published since the last time that user was queried 😕
Name | Version |
---|---|
node | > = 14.x, < 15.x |
Once you've installed node. Open a shell/terminal at the root of this project, then:
npm install
npm run build
Optional but recommended
note
Once you have run npm install
there should be a tool added to your path called ts-node-esm
. Which will allow you to exec the typescript directly by passing the index.ts
file directly to ts-node-esm
. For example ts-node-esm index.ts .....
.
Alternatively, you can run npm run build
which will transpile the typescript to javascript allowing you to use the node runtime
executable. i.e. node index.js ....
I tried to create a static binary and unfortunately failed 😞. See github issue
Print Help
npm run help
or
node index.js --help
List a user's gists
node index.js -u <USERNAME>
List all gists for a previously queried user
node index.js -u <USERNAME> -f
Flag | Description | Required |
---|---|---|
-u, --user |
The GitHub handle of user who's gists you'd like to list |
false Default: djsd123 |
-f, --freshrun |
List all of the user's gists even if listed during a previous run |
false |
--version |
Show version number |
false |
--help |
Show help |
false |