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:
authorisaacs <i@izs.me>2013-04-03 20:12:10 +0400
committerisaacs <i@izs.me>2013-04-03 20:12:10 +0400
commit42964846bfa74b3a0222d67a6b3b5cb9287d993b (patch)
treed67a45e9bc1b7b020f80311f00f826dab6ab148d /node_modules/cmd-shim/package.json
parent5f3fb144595dd08e37c6ac734ad8fa7f368163cc (diff)
cmd-shim@1.1.0
Diffstat (limited to 'node_modules/cmd-shim/package.json')
-rw-r--r--node_modules/cmd-shim/package.json28
1 files changed, 28 insertions, 0 deletions
diff --git a/node_modules/cmd-shim/package.json b/node_modules/cmd-shim/package.json
new file mode 100644
index 000000000..409094507
--- /dev/null
+++ b/node_modules/cmd-shim/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "cmd-shim",
+ "version": "1.1.0",
+ "description": "Used in npm for command line application support",
+ "scripts": {
+ "test": "tap test/*.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/ForbesLindesay/cmd-shim.git"
+ },
+ "license": "BSD",
+ "optionalDependencies": {
+ "graceful-fs": "1.2"
+ },
+ "dependencies": {
+ "mkdirp": "~0.3.3",
+ "graceful-fs": "1.2"
+ },
+ "devDependencies": {
+ "tap": "~0.4.1",
+ "rimraf": "~2.1.4"
+ },
+ "readme": "# cmd-shim\r\n\r\nThe cmd-shim used in npm to create executable scripts on Windows,\r\nsince symlinks are not suitable for this purpose there.\r\n\r\nOn Unix systems, you should use a symbolic link instead.\r\n\r\n[![Build Status](https://travis-ci.org/ForbesLindesay/cmd-shim.png?branch=master)](https://travis-ci.org/ForbesLindesay/cmd-shim) [![Dependency Status](https://gemnasium.com/ForbesLindesay/cmd-shim.png)](https://gemnasium.com/ForbesLindesay/cmd-shim)\r\n\r\n## Installation\r\n\r\n```\r\nnpm install cmd-shim\r\n```\r\n\r\n## API\r\n\r\n### cmdShim(from, to, cb)\r\n\r\nCreate a cmd shim at `to` for the command line program at `from`.\r\ne.g.\r\n\r\n```javascript\r\nvar cmdShim = require('cmd-shim');\r\ncmdShim(__dirname + '/cli.js', '/usr/bin/command-name', function (err) {\r\n if (err) throw err;\r\n});\r\n```\r\n\r\n### cmdShim.ifExists(from, to, cb)\r\n\r\nThe same as above, but will just continue if the file does not exist.\r\nSource:\r\n\r\n```javascript\r\nfunction cmdShimIfExists (from, to, cb) {\r\n fs.stat(from, function (er) {\r\n if (er) return cb()\r\n cmdShim(from, to, cb)\r\n })\r\n}\r\n```\r\n",
+ "readmeFilename": "README.md",
+ "_id": "cmd-shim@1.1.0",
+ "_from": "cmd-shim@"
+}