{"id":28575169,"url":"https://github.com/unjs/impound","last_synced_at":"2026-03-12T07:33:50.897Z","repository":{"id":255350687,"uuid":"849322357","full_name":"unjs/impound","owner":"unjs","description":"Builder-agnostic plugin to allow restricting import patterns in certain parts of your code-base.","archived":false,"fork":false,"pushed_at":"2026-03-09T18:48:18.000Z","size":1483,"stargazers_count":56,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-09T20:48:00.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/unjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["danielroe"]}},"created_at":"2024-08-29T11:47:44.000Z","updated_at":"2026-03-09T18:47:14.000Z","dependencies_parsed_at":"2025-11-27T11:01:34.261Z","dependency_job_id":"d7a71487-d87b-470e-be6c-51f8d386cf9c","html_url":"https://github.com/unjs/impound","commit_stats":null,"previous_names":["danielroe/custodio","unjs/impound"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/unjs/impound","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fimpound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fimpound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fimpound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fimpound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unjs","download_url":"https://codeload.github.com/unjs/impound/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unjs%2Fimpound/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30418101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T07:30:13.030Z","status":"ssl_error","status_checked_at":"2026-03-12T07:29:54.885Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-06-10T22:41:22.895Z","updated_at":"2026-03-12T07:33:50.893Z","avatar_url":"https://github.com/unjs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/danielroe"],"categories":[],"sub_categories":[],"readme":"# impound\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\n\u003e Build plugin to restrict import patterns in certain parts of your code-base.\n\nThis package is an [unplugin](https://unplugin.unjs.io/) which provides support for a wide range of bundlers.\n\n## Usage\n\nInstall package:\n\n```sh\n# npm\nnpm install impound\n```\n\n```js\n// rollup.config.js\nimport { dirname } from 'node:path'\nimport { fileURLToPath } from 'node:url'\nimport { ImpoundPlugin } from 'impound'\n\nexport default {\n  plugins: [\n    ImpoundPlugin.rollup({\n      cwd: dirname(fileURLToPath(import.meta.url)),\n      include: [/src\\/*/],\n      patterns: [\n        [/^node:.*/], // disallows all node imports\n        ['@nuxt/kit', 'Importing from @nuxt kit is not allowed in your src/ directory'] // custom error message\n      ]\n    }),\n  ],\n}\n```\n\n## 💻 Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with ❤️\n\nPublished under [MIT License](./LICENCE).\n\n\u003c!-- Badges --\u003e\n\n[npm-version-src]: https://img.shields.io/npm/v/impound?style=flat-square\n[npm-version-href]: https://npmjs.com/package/impound\n[npm-downloads-src]: https://img.shields.io/npm/dm/impound?style=flat-square\n[npm-downloads-href]: https://npm.chart.dev/impound\n[github-actions-src]: https://img.shields.io/github/actions/workflow/status/unjs/impound/ci.yml?branch=main\u0026style=flat-square\n[github-actions-href]: https://github.com/unjs/impound/actions?query=workflow%3Aci\n[codecov-src]: https://img.shields.io/codecov/c/gh/unjs/impound/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/unjs/impound\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funjs%2Fimpound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funjs%2Fimpound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funjs%2Fimpound/lists"}