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/jstrThis will make the command available from anywhere in your CLI:
jstr --version # Will print the installed versionDependency
To install jstr for a single project/package as a dependency, just use:
npm i -D @jliocsar/jstrSkip the -D flag if you plan to use jstr's Node.js API in production.
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 --versionLast updated