pnpm
Version:
Fast, disk space efficient package manager
116 lines (115 loc) • 5.93 kB
JSON
{
"_args": [
[
{
"raw": "@zkochan/cmd-shim@^3.1.0",
"scope": "@zkochan",
"escapedName": "@zkochan%2fcmd-shim",
"name": "@zkochan/cmd-shim",
"rawSpec": "^3.1.0",
"spec": ">=3.1.0 <4.0.0",
"type": "range"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/link-bins"
]
],
"_from": "@zkochan/cmd-shim@>=3.1.0 <4.0.0",
"_id": "@zkochan/cmd-shim@3.1.0",
"_inCache": true,
"_location": "/@zkochan/cmd-shim",
"_nodeVersion": "9.10.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/cmd-shim_3.1.0_1535188489427_0.20266219320219725"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "4.6.1",
"_phantomChildren": {},
"_requested": {
"raw": "@zkochan/cmd-shim@^3.1.0",
"scope": "@zkochan",
"escapedName": "@zkochan%2fcmd-shim",
"name": "@zkochan/cmd-shim",
"rawSpec": "^3.1.0",
"spec": ">=3.1.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/@pnpm/link-bins"
],
"_resolved": "https://registry.npmjs.org/@zkochan/cmd-shim/-/cmd-shim-3.1.0.tgz",
"_shasum": "2ab8ed81f5bb5452a85f25758eb9b8681982fd2e",
"_shrinkwrap": null,
"_spec": "@zkochan/cmd-shim@^3.1.0",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/link-bins",
"author": {
"name": "Zoltan Kochan",
"email": "zoltan.kochan@gmail.com",
"url": "http://kochan.io"
},
"bugs": {
"url": "https://github.com/pnpm/cmd-shim/issues"
},
"dependencies": {
"is-windows": "^1.0.0",
"mkdirp-promise": "^5.0.1",
"mz": "^2.5.0"
},
"description": "Used in pnpm for command line application support",
"devDependencies": {
"mos": "^1.3.1",
"mos-plugin-readme": "^1.0.4",
"rimraf": "^2.6.2",
"standard": "^11.0.1",
"tape": "^4.6.2",
"tape-promise": "^3.0.0"
},
"directories": {},
"dist": {
"shasum": "2ab8ed81f5bb5452a85f25758eb9b8681982fd2e",
"tarball": "https://registry.npmjs.org/@zkochan/cmd-shim/-/cmd-shim-3.1.0.tgz",
"integrity": "sha512-o8l0+x7C7sMZU3v9GuJIAU10qQLtwR1dtRQIOmlNMtyaqhmpXOzx1HWiYoWfmmf9HHZoAkXpc9TM9PQYF9d4Jg==",
"fileCount": 5,
"unpackedSize": 13278,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbgR4JCRA9TVsSAnZWagAAM3IP/1ZqAFRGgcQmsYQHzEZA\n19MxSiibKGQdTSSM1K289A7giRhAMT8AdNqj7Aiemi8IARsoHhbQ8KfbA0RE\ne/+wzJzoYgv8zU5dVj51e27iHNe7TcPpziRtpVFd2biWsvxLq8XZp4Rpi3iT\nFv5YHdS3VLINcAZCMcZFYhv46NfYXPoYRgiGZldVBchfocaIfu8tQKTPrioa\nRk2TEhqbwQMFqbG/MokFtuSX0vbvrmxYT3XqVc+muqcXbQelAyBSXmNbqmS2\njfQLaAWas7g8bSFSU0dqLT60jZKP4zByZWbQrzPxgAm7B5hpt95qEpujIBvT\n/Wb9zDkFeFz3e1YFzHVE0SesVNDKHbC6dO1jR4KG0DHnXelIlNGTcy92MQjs\n0iSbPMwVLXgCI2IB13TpeIEuyQrVM4vhUdVSyCSp3vzsczDPDePA5ahwsVuU\nBz51woQAC0yD3UQBwZIaXhoib6bm9Pt4DGwsiB1wScBT6K2CbfGRTGcoviBk\nL9GHDrm9dmKtXzbPdcQV3jUFl/CWZaJyXG0i2o+MfEQs+NdC14W77gNwzdUP\natEY45d4iBHjPDRWPUdU21v6T+lEdzvaC4+JkGiflbSklIZetANXnZkwzlB/\nf+eD/ixmnGb/zBrFzsIk5/vNudaLXfN81iV2zkEhgXwbxJl+2UdtMWTFXbnw\naT9x\r\n=TsA/\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"index.d.ts",
"index.js"
],
"gitHead": "b3c57c06211afd3738ecdfd6fde94ea9d49b7de1",
"homepage": "https://github.com/pnpm/cmd-shim#readme",
"license": "BSD-2-Clause",
"maintainers": [
{
"name": "zkochan",
"email": "zoltan.kochan@gmail.com"
}
],
"mos": {
"plugins": [
"readme"
]
},
"name": "@zkochan/cmd-shim",
"optionalDependencies": {},
"readme": "# @zkochan/cmd-shim\n\n> Used in pnpm for command line application support\n\n<!--@shields('travis', 'appveyor', 'npm')-->\n[](https://travis-ci.org/pnpm/cmd-shim) [](https://ci.appveyor.com/project/zkochan/cmd-shim-8ah3a/branch/master) [](https://www.npmjs.com/package/@zkochan/cmd-shim)\n<!--/@-->\n\nThe cmd-shim used in [pnpm](https://github.com/rstacruz/pnpm) to create executable scripts on Windows,\nsince symlinks are not suitable for this purpose there.\n\nOn Unix systems, you should use a symbolic link instead.\n\n## Installation\n\n```sh\nnpm install --save @zkochan/cmd-shim\n```\n\n## API\n\n### `cmdShim(src, to, opts?): Promise<void>`\n\nCreate a cmd shim at `to` for the command line program at `from`.\ne.g.\n\n```javascript\nconst cmdShim = require('@zkochan/cmd-shim')\ncmdShim(__dirname + '/cli.js', '/usr/bin/command-name')\n .catch(err => console.error(err))\n```\n\n### `cmdShim.ifExists(src, to, opts?): Promise<void>`\n\nThe same as above, but will just continue if the file does not exist.\n\n#### Arguments:\n\n- `opts.preserveSymlinks` - _Boolean_ - if true, `--preserve-symlinks` is added to the options passed to NodeJS.\n- `opts.nodePath` - _String_ - sets the [NODE_PATH](https://nodejs.org/api/cli.html#cli_node_path_path) env variable.\n- `opts.createCmdFile` - _Boolean_ - is `true` on Windows by default. If true, creates a cmd file.\n- `opts.createPwshFile` - _Boolean_ - is `true` by default. If true, creates a powershell file.\n\n```javascript\nconst cmdShim = require('@zkochan/cmd-shim')\ncmdShim(__dirname + '/cli.js', '/usr/bin/command-name', { preserveSymlinks: true })\n .catch(err => console.error(err))\n```\n\n## License\n\n[BSD-2-Clause](./LICENSE) © [Zoltan Kochan](http://kochan.io)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/pnpm/cmd-shim.git"
},
"scripts": {
"md": "mos",
"test": "standard && npm run test:unit && mos test",
"test:unit": "tape test/*.js"
},
"types": "index.d.ts",
"version": "3.1.0"
}