0.0.2 • Published 2 years ago

qwas v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

qwas

a useless cli script to print info about packages.json

npm i -g qwas

Examples

if you have a scripts section in the package.json like this:

"scripts": {
    "debug": "npm run dev",
    "stuff:things": "npx do thing",
    "deploy:prod": "node somescript.js"
},

List

qwas -l 
// or
qwas --list

will print

------------
[0]: debug
         command: npm run dev

         npm run debug

[1]: stuff:things
         command: npx do thing

         npm run stuff:things

[2]: deploy:prod
         command: node somescript.js

         npm run deploy:prod

Search

qwas -s depl
// or
qwas --search dploy

will print

------------
[2]: deploy:prod
         command: node somescript.js

         npm run deploy:prod

Select by Index

qwas 1

will print

        npx do thing

npm run stuff:things

so you can copy paste it.