Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wtfaremyinitials/npm-r
a faster npm run
https://github.com/wtfaremyinitials/npm-r
nodejs npm npm-scripts shell-script yarn
Last synced: 14 days ago
JSON representation
a faster npm run
- Host: GitHub
- URL: https://github.com/wtfaremyinitials/npm-r
- Owner: wtfaremyinitials
- License: mit
- Created: 2017-07-03T22:33:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T23:38:30.000Z (over 7 years ago)
- Last Synced: 2024-08-14T20:12:14.971Z (3 months ago)
- Topics: nodejs, npm, npm-scripts, shell-script, yarn
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
![](https://img.shields.io/npm/dm/npm-r.svg)
![](https://img.shields.io/npm/v/npm-r.svg)
![](https://img.shields.io/npm/l/npm-r.svg)npm-r
===> a faster `npm run`
Run an npm package script without starting unnecessary node processes.
Roughly 10x faster than `npm run`.```
$ npm-r test
> ava --verbose✔ script execution (182ms)
✔ multiline (181ms)
✔ undefined return (185ms)
✔ callback mode (178ms)
✔ system access (297ms)5 tests passed [17:48:00]
```Installation
===for use in your shell
`npm install -g npm-r`
for use inside package scripts (recursion!)
`npm install --save npm-r`
Benchmark
===```
$ time npm run benchmark
[snip]
real 0m0.308s
user 0m0.232s
sys 0m0.055s$ time npm-r benchmark
[snip]
real 0m0.026s
user 0m0.011s
sys 0m0.009s$ cat package.json
{
"scripts": {
"benchmark": "echo Hello World"
}
}
```