{"id":15290169,"url":"https://github.com/npm/cmd-shim","last_synced_at":"2025-05-14T18:04:57.358Z","repository":{"id":7765168,"uuid":"9133549","full_name":"npm/cmd-shim","owner":"npm","description":"The cmd-shim used in npm","archived":false,"fork":false,"pushed_at":"2025-04-28T18:53:15.000Z","size":305,"stargazers_count":77,"open_issues_count":11,"forks_count":41,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-05-03T23:02:46.649Z","etag":null,"topics":["npm-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-03-31T17:43:56.000Z","updated_at":"2025-04-28T18:53:18.000Z","dependencies_parsed_at":"2023-01-13T14:29:40.015Z","dependency_job_id":"310e21cd-8459-4bc8-9c6c-aec256cd6f54","html_url":"https://github.com/npm/cmd-shim","commit_stats":{"total_commits":151,"total_committers":25,"mean_commits":6.04,"dds":0.7086092715231789,"last_synced_commit":"7a64d844e293d36046727d5acec9e7f7ea755219"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcmd-shim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcmd-shim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcmd-shim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npm%2Fcmd-shim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npm","download_url":"https://codeload.github.com/npm/cmd-shim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198514,"owners_count":22030965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["npm-cli"],"created_at":"2024-09-30T16:06:00.331Z","updated_at":"2025-05-14T18:04:52.676Z","avatar_url":"https://github.com/npm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmd-shim\n\nThe cmd-shim used in npm 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[![Build Status](https://img.shields.io/github/actions/workflow/status/npm/cmd-shim/ci.yml?branch=main)](https://github.com/npm/cmd-shim)\n[![Dependency Status](https://img.shields.io/librariesio/github/npm/cmd-shim)](https://libraries.io/npm/cmd-shim)\n[![npm version](https://img.shields.io/npm/v/cmd-shim.svg)](https://www.npmjs.com/package/cmd-shim)\n\n## Installation\n\n```\nnpm install cmd-shim\n```\n\n## API\n\n### cmdShim(from, to) -\u003e Promise\n\nCreate a cmd shim at `to` for the command line program at `from`.\ne.g.\n\n```javascript\nvar cmdShim = require('cmd-shim');\ncmdShim(__dirname + '/cli.js', '/usr/bin/command-name').then(() =\u003e {\n  // shims are created!\n})\n```\n\n### cmdShim.ifExists(from, to) -\u003e Promise\n\nThe same as above, but will just continue if the file does not exist.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fcmd-shim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpm%2Fcmd-shim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpm%2Fcmd-shim/lists"}