|
hace 1 mes | |
---|---|---|
.. | ||
README.md | hace 5 meses | |
add-joke.js | hace 1 mes | |
add-token.js | hace 5 meses | |
cli.js | hace 5 meses | |
generate-changelog.js | hace 1 mes | |
info.js | hace 5 meses | |
reassign-ids.js | hace 5 meses | |
reformat.js | hace 5 meses | |
submissions.js | hace 1 mes | |
test.js | hace 5 meses | |
types.d.ts | hace 5 meses | |
validate-ids.js | hace 1 mes | |
validate-jokes.js | hace 5 meses |
Since v2.3.2, JokeAPI has a globally callable command line binary, which acts as an interface to all command-line tools inside this ./tools
folder.
To register the JokeAPI binary, run the command npm run link
If you get an EACCES
error, try using sudo npm run link
, otherwise you probably need to reinstall Node.js through a version manager like nvm
Afterwards, the binary will be globally callable with the commands jokeapi
and japi
To display a list of all commands, run jokeapi -h
To get command-specific help and show the command's arguments, run jokeapi -h <command>
Command | Description |
---|---|
jokeapi start |
Starts JokeAPI (equivalent to running npm start or node . ) |
jokeapi info |
Prints information about JokeAPI, like the /info endpoint |