1.0.18 • Published 3 years ago

yarn_npm_ls v1.0.18

Weekly downloads
404
License
ISC
Repository
github
Last release
3 years ago

yarn|npm ls

A tiny tool, that can list and run command from your package.json

If you have defined a scripts object in your package, this command will show you the options.

For example:

{
  "name": "yarn_npm_ls",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "ls": "node node_modules/.bin/ls",
    "test": "Lorem ipsum dolor sit amet",
    "start": "Lorem ipsum dolor sit amet",
    "stop": "Lorem ipsum dolor sit amet",
    "debug": "Lorem ipsum dolor sit amet",
    "deploy": "Lorem ipsum dolor sit amet",
    "release": "Lorem ipsum dolor sit amet",
    "kill": "Lorem ipsum dolor sit amet",
    "restart": "Lorem ipsum dolor sit amet",

  },
  "author": "Alex Nudelman",
  "license": "ISC",
  "dependencies": {
    "chalk": "^3.0.0"
  }
}

(yarn or npm) ls Running this command will execute the ls script that will list all your command defined in the package.json as a scripts.

$ yarn ls 


 🤓  Available commands are: 

        1 - start => react-scripts start
   👉  2 - build => react-scripts build
        3 - test => react-scripts test --env=jsdom
        4 - eject => react-scripts eject



 🧐 Use arrows to navigate or type the name/number: 2 or build

use the arrow keys to navigate or type the cmd name or the cmd number


Custom path if needed:

ROOT_PATH='/tmp/myproject' yarn ls

*** for npm you can add it manually by adding this line as a script in the package.json

"scripts": {
    "ls": "node_modules/.bin/ls",
    }

npm run ls will run the script

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago