{"id":15732632,"url":"https://github.com/jonschlinkert/global-module-exists","last_synced_at":"2025-03-13T05:31:10.355Z","repository":{"id":57159458,"uuid":"93143268","full_name":"jonschlinkert/global-module-exists","owner":"jonschlinkert","description":"Returns true if a npm package exists in global node_modules.","archived":false,"fork":false,"pushed_at":"2017-06-02T08:17:19.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T18:56:52.694Z","etag":null,"topics":["exists","global","installed","npm","package"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-02T08:14:13.000Z","updated_at":"2021-04-12T22:30:03.000Z","dependencies_parsed_at":"2022-09-08T11:03:48.001Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/global-module-exists","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fglobal-module-exists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fglobal-module-exists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fglobal-module-exists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fglobal-module-exists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/global-module-exists/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351155,"owners_count":20276894,"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":["exists","global","installed","npm","package"],"created_at":"2024-10-04T00:21:23.631Z","updated_at":"2025-03-13T05:31:09.994Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# global-module-exists [![NPM version](https://img.shields.io/npm/v/global-module-exists.svg?style=flat)](https://www.npmjs.com/package/global-module-exists) [![NPM monthly downloads](https://img.shields.io/npm/dm/global-module-exists.svg?style=flat)](https://npmjs.org/package/global-module-exists) [![NPM total downloads](https://img.shields.io/npm/dt/global-module-exists.svg?style=flat)](https://npmjs.org/package/global-module-exists) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/global-module-exists.svg?style=flat\u0026label=Travis)](https://travis-ci.org/jonschlinkert/global-module-exists)\n\n\u003e Returns true if a npm package exists in global node_modules.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save global-module-exists\n```\n\n## Usage\n\n```js\nvar exists = require('global-module-exists');\nconsole.log(exists('generate'));\n//=\u003e true\n```\n\n## About\n\n### Related projects\n\n* [global-modules](https://www.npmjs.com/package/global-modules): The directory used by npm for globally installed npm modules. | [homepage](https://github.com/jonschlinkert/global-modules \"The directory used by npm for globally installed npm modules.\")\n* [global-paths](https://www.npmjs.com/package/global-paths): Returns an array of unique \"global\" directories based on the user's platform and environment. The… [more](https://github.com/jonschlinkert/global-paths) | [homepage](https://github.com/jonschlinkert/global-paths \"Returns an array of unique \"global\" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.\")\n* [npm-prefix](https://www.npmjs.com/package/npm-prefix): Get global npm prefix. Respects npmrc configs | [homepage](https://github.com/eush77/npm-prefix \"Get global npm prefix. Respects npmrc configs\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 02, 2017._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fglobal-module-exists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fglobal-module-exists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fglobal-module-exists/lists"}