Installation

jstr is available through its npm package, which can be downloaded either globally (then available to call from anywhere, like any other command from your terminal) or as a dependency in your Node project:

Globally

npm i -g @jliocsar/jstr

This will make the command available from anywhere in your CLI:

jstr --version # Will print the installed version

Dependency

To install jstr for a single project/package as a dependency, just use:

npm i -D @jliocsar/jstr

This will make the tool available only to that specific Node project, particularly useful if you want to specify jstr's version and/or just not have it installed for your entire machine.

Bun

jstr is also exposed using Bun as a runtime, you can check it out with:

jstr.bun --version

Last updated