1.0.0 • Published 10 months ago
egg-plugin-extra v1.0.0
egg-plugin-extra
An egg plugin that provides a number of built-in methods
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
Questions & Suggestions
Please open an issue here.