【文件属性】:
文件名称:express-power:用超能力表达! 使用Express轻松进行聚类,记录和着色
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-01 15:37:36
JavaScript
表达能力
用超能力表达! 借助Express轻松进行群集,CLI日志记录和颜色设置。
在上支持我们,以优先获得我们的开发计划更新和对新功能的投票权。
安装
用yarn或npm安装Express Power:
yarn add express-power express
npm install express-power express
用法与范例
最小的例子
const Power = require ( "express-power" ) ;
const worker = app => {
app . listen ( 4000 , ( ) => Power . log ( "Listening on port 4000" . green ) ) ;
} ;
Power . load ( { worker } ) ;
扩展示例
const Power = require
【文件预览】:
express-power-main
----.gitignore(43B)
----package.json(812B)
----LICENSE(1KB)
----index.js(3KB)
----CHANGELOG.md(373B)
----test.js(158B)
----README.md(4KB)
----.npmignore(29B)