@lzpong/httpm 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
## 安装
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install httpm
|
|
21
|
+
npm install @lzpong/httpm
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
或直接拷贝 `httpm.js` 到项目中:
|
|
@@ -30,7 +30,7 @@ const httpm = require('./httpm');
|
|
|
30
30
|
## 快速开始
|
|
31
31
|
|
|
32
32
|
```javascript
|
|
33
|
-
const httpm = require('httpm');
|
|
33
|
+
const httpm = require('@lzpong/httpm');
|
|
34
34
|
const app = httpm({ rootPath: './public', svrPort: 3000 });
|
|
35
35
|
|
|
36
36
|
// 全局中间件
|
|
@@ -275,7 +275,7 @@ app._logger.error('Something went wrong', err);
|
|
|
275
275
|
### 独立使用
|
|
276
276
|
|
|
277
277
|
```javascript
|
|
278
|
-
const { Logger } = require('httpm');
|
|
278
|
+
const { Logger } = require('@lzpong/httpm');
|
|
279
279
|
|
|
280
280
|
const logger = new Logger({ level: 'debug', logDir: './logs', name: 'myapp' });
|
|
281
281
|
logger.debug('Debug message');
|