# egg-utils

> Utils for all egg projects

Latest version **2.5.0** (published 2023-04-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install egg-utils
pnpm add egg-utils
yarn add egg-utils
bun add egg-utils
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2023-04-26 |
| First published | 2016-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | fengmk2 |
| Maintainers | atian25, dead_horse, fengmk2, popomore, eggjs-admin |
| Keywords | egg, utils |

## Links

- npm: https://www.npmjs.com/package/egg-utils
- Repository: https://github.com/eggjs/egg-utils
- Homepage: https://github.com/eggjs/egg-utils#readme
- Issues: https://github.com/eggjs/egg-utils/issues
- npm.io page: https://npm.io/package/egg-utils

## Dependencies (2)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [utility](https://npm.io/package/utility.md) ^1.15.0

## Recent versions

- 2.5.0 (latest) — 2023-04-26
- 2.4.1 — 2018-08-07
- 2.4.0 — 2018-04-15
- 2.3.0 — 2017-10-25
- 2.2.0 — 2017-06-02
- 2.1.0 — 2017-03-02
- 2.0.0 — 2017-03-01
- 1.1.0 — 2017-01-13
- 1.0.0 — 2016-06-20

## README

egg-utils
---------------

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-utils.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-utils
[travis-image]: https://img.shields.io/travis/eggjs/egg-utils.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-utils
[codecov-image]: https://codecov.io/github/eggjs/egg-utils/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/eggjs/egg-utils?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-utils.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-utils
[download-image]: https://img.shields.io/npm/dm/egg-utils.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-utils

Utils for all egg projects.

## Installation

```bash
$ npm i egg-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)

---
_Source: https://npm.io/package/egg-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
