{"id":17472703,"url":"https://github.com/shinnn/npm-cli-path","last_synced_at":"2026-04-28T16:03:58.243Z","repository":{"id":65411472,"uuid":"46373543","full_name":"shinnn/npm-cli-path","owner":"shinnn","description":"Resolve the path of `npm-cli.js` included in the globally installed npm CLI","archived":false,"fork":false,"pushed_at":"2019-05-31T01:49:46.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T18:49:10.107Z","etag":null,"topics":["async","npm","promise"],"latest_commit_sha":null,"homepage":null,"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/shinnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-17T20:30:28.000Z","updated_at":"2024-07-01T19:26:01.000Z","dependencies_parsed_at":"2023-01-23T10:54:59.381Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/npm-cli-path","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fnpm-cli-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fnpm-cli-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fnpm-cli-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fnpm-cli-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/npm-cli-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991582,"owners_count":20706129,"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":["async","npm","promise"],"created_at":"2024-10-18T17:34:18.128Z","updated_at":"2026-04-28T16:03:53.190Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","readme":"# npm-cli-path\n\n[![npm version](https://img.shields.io/npm/v/npm-cli-path.svg)](https://www.npmjs.com/package/npm-cli-path)\n[![Build Status](https://travis-ci.com/shinnn/npm-cli-path.svg?branch=master)](https://travis-ci.com/shinnn/npm-cli-path)\n[![codecov](https://codecov.io/gh/shinnn/npm-cli-path/branch/master/graph/badge.svg)](https://codecov.io/gh/shinnn/npm-cli-path)\n\nResolve the path of [`npm-cli.js`][npm-cli] included in the globally installed [npm](https://www.npmjs.com/) CLI\n\n```javascript\nconst npmCliPath = require('npm-cli-path');\n\n(async () =\u003e {\n  const path = npmCliPath(); //=\u003e '/usr/local/lib/node_modules/npm/bin/npm-cli.js'\n})();\n```\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install npm-cli-path\n```\n\n## API\n\n```javascript\nconst npmCliPath = require('npm-cli-path');\n```\n\n### npmCliPath()\n\nReturn: `Promise\u003cstring\u003e`\n\nIt resolves the path of [`npm-cli.js`][npm-cli] which is the entry point of [npm CLI](https://github.com/npm/cli).\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2019 Watanabe Shinnosuke\n\n[npm-cli]: https://github.com/npm/cli/blob/latest/bin/npm-cli.js\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fnpm-cli-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fnpm-cli-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fnpm-cli-path/lists"}