S3t: shortify npm commands and run them quickly
S3t is a small tool (no dependencies, 50 lines of code) to run npm commands faster.
Suppose you often type a command like the following one:
ng generate component src/module/components my-componentWhat if you can achieve the same result with:
npm run new:c my-component You can shortify the command above in your package.json like in the example below:
"new:c": "npx s3t \"ng generate component src/module/components $component\" --"When you run it, it will ask for the component name and then launch your original command.
npm run new:cNote that you can specify the component name inline:
npm run new:c my-component