@philnash/dad-jokes-cli
v1.0.0
Published
A CLI for querying the icanhazdadjoke API
Downloads
1
Readme
4 Steps from JavaScript to TypeScript
This repo shows you the steps to go through to update a project from JavaScript to TypeScript.
This repo is a companion to Phil Nash's talk from WeAreDevelopers World Congress 2023, which was originally based on the advice from Dominik Kundel's blog post How to move your project to TypeScript at your own pace.
Usage
You can use the package on the command line with npx
:
npx --package=@philnash/dad-jokes-cli joke
Or by installing globally and calling the joke
command.
npm install -g @philnash/dad-jokes-cli
Using the command on its own will return a random joke.
joke
You can search for jokes by calling the search
command and passing a --term
argument.
joke search --term "dad"
License
MIT License Copyright (c) 2023 Phil Nash