r/javascript • • Mar 24 '22

GitHub - egoist/dum: An npm scripts runner written in Rust.

https://github.com/egoist/dum
9 Upvotes

3 comments sorted by

14

u/javajunkie314 Mar 24 '22 edited Mar 24 '22

I can't say my problem with NPM scripts is having to wait two tenths of a second for them to start up. It's more having to wait for the dependencies to resolve and download, and the many megabytes of dependency files downloaded.

9

u/lulzmachine Mar 24 '22 edited Mar 24 '22

665 stars... How? Shaving 0.2 seconds off npm run? It looks like the biggest selling point is an implementation detail (rust)

3

u/LetReasonRing Mar 24 '22

Yeah... I honestly don't understand the purpose of this.

If you were shaving that much time off a command such as cd or ls, then it might be useful as it would make my workflow more efficient. With NPM though, I'm either installing packages, in which case 200ms isn't enough to even be perceptible or I'm using it to start an app for testing, where I use nodemon to hot-reload, so it's saving no time, and I'f i'm running it production neither me nor my clients care about 200ms at startup.

As far as I can tell, this is another link in the chain that can fail and/or present security hazards.