{"id":13433510,"url":"https://github.com/pnpm/only-allow","last_synced_at":"2025-05-15T04:06:57.858Z","repository":{"id":39448714,"uuid":"260442094","full_name":"pnpm/only-allow","owner":"pnpm","description":"Force a specific package manager to be used on a project","archived":false,"fork":false,"pushed_at":"2024-07-05T14:34:29.000Z","size":34,"stargazers_count":611,"open_issues_count":11,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-11T19:06:07.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pnpm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-01T11:22:57.000Z","updated_at":"2025-05-06T23:15:59.000Z","dependencies_parsed_at":"2022-07-12T19:30:42.835Z","dependency_job_id":"a311720c-5b08-4998-bd17-8425fb6a9e78","html_url":"https://github.com/pnpm/only-allow","commit_stats":{"total_commits":14,"total_committers":7,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"f4f81f4731635eb1c8e6628489ecc2a52d0b0de5"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fonly-allow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fonly-allow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fonly-allow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnpm%2Fonly-allow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnpm","download_url":"https://codeload.github.com/pnpm/only-allow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253879033,"owners_count":21977917,"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":[],"created_at":"2024-07-31T02:01:27.659Z","updated_at":"2025-05-15T04:06:57.796Z","avatar_url":"https://github.com/pnpm.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Uncategorized","others"],"sub_categories":["Uncategorized"],"readme":"# only-allow\n\n\u003e Force a specific package manager to be used on a project\n\n## Usage\n\nAdd a `preinstall` script to your project's `package.json`.\n\nIf you want to force [npm](https://docs.npmjs.com/cli/npm), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow npm\"\n  }\n}\n```\n\nIf you want to force [cnpm](https://npmmirror.com/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow cnpm\"\n  }\n}\n```\n\nIf you want to force [pnpm](https://pnpm.js.org/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow pnpm\"\n  }\n}\n```\n\nIf you want to force [yarn](https://yarnpkg.com/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow yarn\"\n  }\n}\n```\n\nIf you want to force [bun](https://bun.sh/), add:\n\n```json\n{\n  \"scripts\": {\n    \"preinstall\": \"npx only-allow bun\"\n  }\n}\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnpm%2Fonly-allow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnpm%2Fonly-allow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnpm%2Fonly-allow/lists"}