1.0.0 • Published 10 months ago

egg-plugin-extra v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

egg-plugin-extra

An egg plugin that provides a number of built-in methods

NPM version Codacy Badge Known Vulnerabilities npm download License

Sonar

Install

# use pnpm
$ pnpm install egg-plugin-extra

# use yarn
$ yarn add egg-plugin-extra

Usage

// {app_root}/config/plugin.js
exports.extra = {
  enable: true,
  package: 'egg-plugin-extra'
}

Configuration

// {app_root}/config/config.default.js
exports.extra = {
  limit: '2mb',
  encoding: 'utf8',
  key: 'body'
}

Extends

// {app_root}/app/extend/helper.js
const { helper } = ctx

helper.functionXXX()

Change logs

Change logs

Questions & Suggestions

Please open an issue here.

License

MIT