2.0.0-beta.4 β€’ Published 4 years ago

st-run v2.0.0-beta.4

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

npx replacement: st-run st-rm-rf dist ++ system:tsc

πŸ’¨Just like npx but chainable, way faster and always using @latest of any command πŸ’¨

πŸŽ‰ Get rid of node scripts to chain commands πŸŽ‰

πŸš€Get rid of direct & out-dated CLI dependencies πŸš€

πŸ§‘β€πŸ€β€πŸ§‘ Cross-platform and end-2-end tested ✨

Performance

~2x faster than npx when your machine is online:

~5x faster than npx when your machine is offline:

And it always checks for the @latest version when your machine is online.

Usage

You can use st-run in npm scripts like this:

{
    "name": "your-node-module",
    "scripts": {
        "copy-smth": "st-run st-cp package.json package.json2"
    },
    "dependencies": {
        "st-run": "latest"
    }
}

This way you may get rid of some direct dependencies and make sure the CLI tools being used by end-users are always up to date.

Or install it globally like npx:

npm i -g st-run

And use it globally just like npx:

st-run st-cp package.json package.json2

commandA arg1 ++ commandB arg1 arg2 Chaining Syntax

You can get rid of special node scripts to chain commands by letting st-run chain them for you:

st-run st-cp package.json package.json2 ++ st-cp package.json2 package.json3

As you can see, a simple + chains two or more commands. There is no command count limit.

command@specificVersion Syntax

With st-run you can have multiple cached versions at the same time (just like with maven, gradle etc.):

st-run st-cp@1.0.0 package.json package.json2 ++ st-cp@2.0.0 package.json2 package.json3

Cool?

system:command Syntax

Oh, you want to run a command that is not an npm script? st-run got you covered:

st-run system:rm -rf dist + system:tsc

This also works for globally installed npm packages that you don't want to update on-the-fly.

2.0.0-beta.2

4 years ago

2.0.0-beta.4

4 years ago

2.0.0-beta.3

4 years ago

2.0.0-alpha.32

4 years ago

2.0.0-alpha.31

4 years ago

2.0.0-alpha.29

4 years ago

2.0.0-alpha.28

4 years ago

2.0.0-alpha.27

4 years ago

2.0.0-alpha.26

4 years ago

2.0.0-alpha.25

4 years ago

2.0.0-alpha.24

4 years ago

2.0.0-alpha.23

4 years ago

2.0.0-alpha.22

4 years ago

2.0.0-alpha.21

4 years ago

2.0.0-alpha.20

5 years ago

2.0.0-alpha.19

5 years ago

2.0.0-alpha.18

5 years ago

2.0.0-alpha.17

5 years ago

2.0.0-alpha.15

5 years ago

2.0.0-alpha.14

5 years ago

2.0.0-alpha.13

5 years ago

2.0.0-alpha.11

5 years ago

2.0.0-alpha.10

5 years ago

2.0.0-alpha.9

5 years ago

2.0.0-alpha.8

5 years ago

2.0.0-alpha.7

5 years ago

2.0.0-alpha.6

5 years ago

2.0.0-alpha.5

5 years ago

2.0.0-alpha.4

5 years ago

2.0.0-alpha.3

5 years ago

2.0.0-alpha.2

5 years ago

2.0.0-alpha.1

5 years ago