{"id":28549934,"url":"https://github.com/eggjs/utils","last_synced_at":"2025-07-05T06:31:00.071Z","repository":{"id":57220816,"uuid":"61525173","full_name":"eggjs/utils","owner":"eggjs","description":"Utils for all egg projects.","archived":false,"fork":false,"pushed_at":"2025-03-05T14:59:54.000Z","size":147,"stargazers_count":10,"open_issues_count":1,"forks_count":13,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-06-18T15:35:22.523Z","etag":null,"topics":["egg"],"latest_commit_sha":null,"homepage":"https://egg-utils.vercel.app","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/eggjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2016-06-20T07:20:55.000Z","updated_at":"2025-03-05T14:59:56.000Z","dependencies_parsed_at":"2022-08-29T00:11:36.396Z","dependency_job_id":"ded8105d-400f-49f3-860a-208fea15fb57","html_url":"https://github.com/eggjs/utils","commit_stats":{"total_commits":37,"total_committers":10,"mean_commits":3.7,"dds":0.6486486486486487,"last_synced_commit":"32c2b86c09bf28e9699693bd61aeb79663871b8c"},"previous_names":["eggjs/utils"],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/eggjs/utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Futils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Futils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Futils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Futils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eggjs","download_url":"https://codeload.github.com/eggjs/utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eggjs%2Futils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261398209,"owners_count":23152625,"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":["egg"],"created_at":"2025-06-10T02:36:13.224Z","updated_at":"2025-07-05T06:31:00.066Z","avatar_url":"https://github.com/eggjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @eggjs/utils\n\n[![NPM version][npm-image]][npm-url]\n[![CI](https://github.com/eggjs/utils/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/utils/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n[![Node.js Version](https://img.shields.io/node/v/@eggjs/utils.svg?style=flat)](https://nodejs.org/en/download/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)\n\n[npm-image]: https://img.shields.io/npm/v/@eggjs/utils.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@eggjs/utils\n[codecov-image]: https://codecov.io/github/eggjs/utils/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/utils?branch=master\n[download-image]: https://img.shields.io/npm/dm/@eggjs/utils.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@eggjs/utils\n\nUtils for all egg projects.\n\n## Installation\n\n```bash\nnpm i @eggjs/utils\n```\n\n## API\n\n### `getPlugins(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n- {String} env - egg environment\n\n### `getLoadUnits(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n- {String} env - egg environment\n\n### `getConfig(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n- {String} env - egg environment\n\n### `getFrameworkPath(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n\n## License\n\n[MIT](LICENSE)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=eggjs/utils)](https://github.com/eggjs/utils/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggjs%2Futils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feggjs%2Futils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feggjs%2Futils/lists"}