https://github.com/eggjs/utils
Utils for all egg projects.
https://github.com/eggjs/utils
egg
Last synced: 6 months ago
JSON representation
Utils for all egg projects.
- Host: GitHub
- URL: https://github.com/eggjs/utils
- Owner: eggjs
- License: mit
- Created: 2016-06-20T07:20:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-05T14:59:54.000Z (10 months ago)
- Last Synced: 2025-06-18T15:35:22.523Z (7 months ago)
- Topics: egg
- Language: TypeScript
- Homepage: https://egg-utils.vercel.app
- Size: 144 KB
- Stars: 10
- Watchers: 16
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @eggjs/utils
[![NPM version][npm-image]][npm-url]
[](https://github.com/eggjs/utils/actions/workflows/nodejs.yml)
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]
[](https://nodejs.org/en/download/)
[](https://makeapullrequest.com)
[npm-image]: https://img.shields.io/npm/v/@eggjs/utils.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@eggjs/utils
[codecov-image]: https://codecov.io/github/eggjs/utils/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/eggjs/utils?branch=master
[download-image]: https://img.shields.io/npm/dm/@eggjs/utils.svg?style=flat-square
[download-url]: https://npmjs.org/package/@eggjs/utils
Utils for all egg projects.
## Installation
```bash
npm i @eggjs/utils
```
## API
### `getPlugins(options)`
- {String} baseDir - the current directory of application
- {String} framework - the directory of framework
- {String} env - egg environment
### `getLoadUnits(options)`
- {String} baseDir - the current directory of application
- {String} framework - the directory of framework
- {String} env - egg environment
### `getConfig(options)`
- {String} baseDir - the current directory of application
- {String} framework - the directory of framework
- {String} env - egg environment
### `getFrameworkPath(options)`
- {String} baseDir - the current directory of application
- {String} framework - the directory of framework
## License
[MIT](LICENSE)
## Contributors
[](https://github.com/eggjs/utils/graphs/contributors)
Made with [contributors-img](https://contrib.rocks).