Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-07-09 01:20:33 +0300
committerRebecca Turner <me@re-becca.org>2017-07-11 03:09:54 +0300
commitfb040bee0710759c60e45bf8fa2a3b8ddcf4212a (patch)
treefbd20b9c0b119495436404b8effa5a417269e80c /bin/npx-cli.js
parent88aafee8b5b232b7eeb5690279a098d056575791 (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-xbin/npx-cli.js8
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))