Dum: An NPM scripts runner written in Rust

dum replaces npm run and npx. Instead of waiting 200ms for your npm client to start, it will start immediately. 💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub. How This is written in Rust! (Or any compile-to-native language). Benchmark (hyperfine “dum foo” “npm run foo” –warmup 10):…

115
Dum: An NPM scripts runner written in Rust

dum replaces npm recede and npx.
As a change of waiting 200ms on your npm client to commence, this might commence today.

💛 That it is seemingly you’ll advantage the creator change into a fat-time commence-offer maintainer by sponsoring him on GitHub.

CleanShot 2021-11-20 at 15 23 54@2x


How

That is written in Rust! (Or any compile-to-native language).

Benchmark (hyperfine "dum foo" "npm recede foo" --warmup 10):

RecountPoint out [ms]Min [ms]Max [ms]Relative
dum foo41.7 ± 1.239.844.61.00
npm recede foo333.7 ± 2.0330.0336.08.01 ± 0.23

Install

Homebrew

brew set up egoist/faucet/dum

Shell

curl -sSL https://bina.egoist.sh/egoist/dum | sh

Cargo

GitHub Releases

Rep a free up manually and pass it to /usr/native/bin manually.

Usage

dum [...args_to_forward]: Crawl npm scripts or scripts in node_modules/.bin, cherish myth recede, npm recede, npx.

In expose so that you can scamper flags to dum itself, cherish the -c flag to commerce directory, potentialities are you’ll devour to aloof put it sooner than the script establish, cherish dum -c one other/directory script_name --forward some_flag.

Examples:

dum some-npm-script

dum some-npm-script --flags will --be forwarded
# Treasure npx, nonetheless mush sooner
dum some-npm-equipment-cli-establish --flags will --be forwarded

# Swap working directory
dum -c programs/sub-equipment receive

# Extra
dum --advantage

Install Packages

Dum is no longer a equipment manager but, nonetheless we forward set up, add, expend commands to npm, pnpm and myth robotically:

# Crawl `npm i` or `myth` or `pnpm i` reckoning on the venture
dum set up # or `dum i`
# Treasure above nonetheless add programs
dum add react vue -D

dum expend react vue

Barriers

Inspiration

I are seeking to are attempting to learn Rust so I made this. Impressed by bun.

Sponsors

sponsors

License

MIT © EGOIST

Read More

Vanic
WRITTEN BY

Vanic

“Simplicity, patience, compassion.
These three are your greatest treasures.
Simple in actions and thoughts, you return to the source of being.
Patient with both friends and enemies,
you accord with the way things are.
Compassionate toward yourself,
you reconcile all beings in the world.”
― Lao Tzu, Tao Te ChingBio: About: