{"id":15691465,"url":"https://github.com/anandchowdhary/eject-dependencies","last_synced_at":"2026-02-04T12:35:54.703Z","repository":{"id":38005117,"uuid":"250026900","full_name":"AnandChowdhary/eject-dependencies","owner":"AnandChowdhary","description":"🪂 CLI to eject your npm dependencies to your source code","archived":false,"fork":false,"pushed_at":"2024-07-15T21:39:34.000Z","size":260,"stargazers_count":1,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-26T22:25:41.248Z","etag":null,"topics":["cli","dependencies","eject","nodejs","npm","typescript"],"latest_commit_sha":null,"homepage":"https://anandchowdhary.github.io/eject-dependencies/","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/AnandChowdhary.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-03-25T16:09:24.000Z","updated_at":"2021-12-08T19:22:46.000Z","dependencies_parsed_at":"2024-10-23T23:08:38.576Z","dependency_job_id":"9f2d2217-dc0d-4aac-a138-87a9aa29f2a1","html_url":"https://github.com/AnandChowdhary/eject-dependencies","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":0.09677419354838712,"last_synced_commit":"a0f62ba2c68e31f7825899c88d1394fbfa54a3ce"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"AnandChowdhary/node.ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnandChowdhary%2Feject-dependencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnandChowdhary%2Feject-dependencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnandChowdhary%2Feject-dependencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnandChowdhary%2Feject-dependencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnandChowdhary","download_url":"https://codeload.github.com/AnandChowdhary/eject-dependencies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252580403,"owners_count":21771331,"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":["cli","dependencies","eject","nodejs","npm","typescript"],"created_at":"2024-10-03T18:21:44.916Z","updated_at":"2026-02-04T12:35:54.670Z","avatar_url":"https://github.com/AnandChowdhary.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪂 Eject dependencies\n\nIf you have dependencies in your `node_modules` folder, this package copies them to your source directory and changes all import references. It's like create-react-app's `eject` function but for all or some dependencies.\n\n[![Node CI](https://img.shields.io/github/workflow/status/AnandChowdhary/eject-dependencies/Node%20CI?label=GitHub%20CI\u0026logo=github)](https://github.com/AnandChowdhary/eject-dependencies/actions)\n[![Travis CI](https://img.shields.io/travis/AnandChowdhary/eject-dependencies?label=Travis%20CI\u0026logo=travis%20ci\u0026logoColor=%23fff)](https://travis-ci.org/AnandChowdhary/eject-dependencies)\n[![Coverage](https://coveralls.io/repos/github/AnandChowdhary/eject-dependencies/badge.svg?branch=master\u0026v=2)](https://coveralls.io/github/AnandChowdhary/eject-dependencies?branch=master)\n[![Dependencies](https://img.shields.io/librariesio/release/npm/eject-dependencies)](https://libraries.io/npm/eject-dependencies)\n[![License](https://img.shields.io/npm/l/eject-dependencies)](https://github.com/AnandChowdhary/eject-dependencies/blob/master/LICENSE)\n[![Vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/eject-dependencies.svg)](https://snyk.io/test/npm/eject-dependencies)\n[![Based on Node.ts](https://img.shields.io/badge/based%20on-node.ts-brightgreen)](https://github.com/AnandChowdhary/eject-dependencies)\n[![npm type definitions](https://img.shields.io/npm/types/eject-dependencies.svg)](https://unpkg.com/browse/eject-dependencies/dist/index.d.ts)\n[![npm package](https://img.shields.io/npm/v/eject-dependencies.svg)](https://www.npmjs.com/package/node.ts)\n[![npm downloads](https://img.shields.io/npm/dw/eject-dependencies)](https://www.npmjs.com/package/node.ts)\n[![Contributors](https://img.shields.io/github/contributors/AnandChowdhary/eject-dependencies)](https://github.com/AnandChowdhary/eject-dependencies/graphs/contributors)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n[![npm](https://nodei.co/npm/eject-dependencies.png)](https://www.npmjs.com/package/eject-dependencies)\n\n## 💡 Usage\n\nInstall the package globally from [npm](https://www.npmjs.com/package/eject-dependencies):\n\n```bash\nnpm install --save-global eject-dependencies\n```\n\nUse the CLI:\n\n```bash\neject-dependencies\n\n# With configuration (see options below)\neject-dependencies --source-dir './node_modules'\n```\n\nOr, use without installation using `npx`:\n\n```bash\nnpx eject-dependencies\n```\n\nOr, use programmatically with the API:\n\n```ts\nimport { eject } from \"eject-dependencies\";\n\n// Default\neject();\n\n// With configuration\neject({ sourceDir: \"./node_modules\" });\n```\n\n## Configuration\n\n| Option                  | Description                               | Example value                  |\n| ----------------------- | ----------------------------------------- | ------------------------------ |\n| `sourceDir`             | `string` with dependencies dir            | `\"./node_modules\"`             |\n| `destDir`               | `string` with dir to copy in              | `\"./ejected\"`                  |\n| `codeFiles`             | `string[]` with glob files                | `[\"src/**/*.{js,jsx\"]`         |\n| `updateTestFiles`       | `boolean` to also update specfiles        | `true`                         |\n| `dependenciesFilter` 📦 | `Function` to filter dependencies (`Set`) | `dependencies =\u003e dependencies` |\n\n_📦 → This option is only supported by the API, not the CLI_\n\n## 👩‍💻 Development\n\nBuild TypeScript:\n\n```bash\nnpm run build\n```\n\nRun unit tests and view coverage:\n\n```bash\nnpm run test-without-reporting\n```\n\n## 📄 License\n\n[MIT](./LICENSE) © [Anand Chowdhary](https://anandchowdhary.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanandchowdhary%2Feject-dependencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanandchowdhary%2Feject-dependencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanandchowdhary%2Feject-dependencies/lists"}