【文件属性】:
文件名称:crepecake-common:常用的可丽饼中间件
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-25 01:08:13
JavaScript
常见的可丽饼
常用的可丽饼中间件。
默认中间件
压缩: :
头盔: :
记录器: :
bodyparser: :
cors: :
例子
使用默认中间件
const common = require ( 'crepecake-common' ) ;
const app = new CrepeCake ( ) ;
app . use ( common ( ) ) ;
配置默认中间件
const common = require ( 'crepecake-common' ) ;
const app = new CrepeCake ( ) ;
app . use ( common ( {
helmet : { ... helmet options } ,
bodyparser : { ... bodyparser options }
} ) ) ;
使用自定义
【文件预览】:
crepecake-common-master
----.gitignore(13B)
----README.md(951B)
----LICENSE(1KB)
----package.json(844B)
----index.js(990B)
----index.d.ts(470B)
----package-lock.json(18KB)