run2
v0.0.1
Published
Node, but faster.
Readme
run2: Node, but faster
Installation: npm i -g run2
Usage
The run2 package installs two commands for you to use: run and exec.
run runs an npm script from your package.json.
- npm run build
- pnpm run build
- node --run build
+ run buildexec runs a script/module file.
- node foo.js
+ exec foo.jsTypeScript
If you have esbuild installed, TypeScript is supported anywhere you can use JS - in scripts and exec foo.ts.
If your scripts reference ts-node, they will automatically use Nobe's TypeScript support instead (it's 10-20x faster).
To install esbuild: npm i esbuild or npm i -g esbuild for global.
