diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2017-07-09 01:20:33 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-07-11 03:09:54 +0300 |
commit | fb040bee0710759c60e45bf8fa2a3b8ddcf4212a (patch) | |
tree | fbd20b9c0b119495436404b8effa5a417269e80c /bin/npx-cli.js | |
parent | 88aafee8b5b232b7eeb5690279a098d056575791 (diff) |
npx: bundle npx with npm itself
npx is an npm package runner with a bunch of nice features. While
it is also available on the npm registry as `npx`, it's the sort
of thing that's better off being bundles with npm itself.
Fixes: #6053
PR-URL: https://github.com/npm/npm/pull/17685
Credit: @zkat
Reviewed-By: @iarna
Diffstat (limited to 'bin/npx-cli.js')
-rwxr-xr-x | bin/npx-cli.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/npx-cli.js b/bin/npx-cli.js new file mode 100755 index 000000000..f40436505 --- /dev/null +++ b/bin/npx-cli.js @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +const npx = require('libnpx') +const path = require('path') + +const NPM_PATH = path.join(__dirname, 'npm-cli.js') + +npx(npx.parseArgs(process.argv, NPM_PATH)) |