Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thinkjs/think-meta
Show meta for ThinkJS 3.x
https://github.com/thinkjs/think-meta
meta think-middleware thinkjs3
Last synced: about 1 month ago
JSON representation
Show meta for ThinkJS 3.x
- Host: GitHub
- URL: https://github.com/thinkjs/think-meta
- Owner: thinkjs
- License: mit
- Created: 2017-03-30T12:37:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-18T06:19:54.000Z (over 5 years ago)
- Last Synced: 2024-04-27T21:20:16.292Z (8 months ago)
- Topics: meta, think-middleware, thinkjs3
- Language: JavaScript
- Size: 52.7 KB
- Stars: 4
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- think-awesome - think-meta - meta.svg) | ![](https://travis-ci.org/thinkjs/think-meta.svg) | ![](https://coveralls.io/repos/github/thinkjs/think-meta/badge.svg) | Show meta info | (Middlewares)
README
# think-meta
[![Build Status](https://travis-ci.org/thinkjs/think-meta.svg?branch=master)](https://travis-ci.org/thinkjs/think-meta)
[![Coverage Status](https://coveralls.io/repos/github/thinkjs/think-meta/badge.svg?branch=master)](https://coveralls.io/github/thinkjs/think-meta?branch=master)
[![npm](https://img.shields.io/npm/v/think-meta.svg?style=flat-square)](https://www.npmjs.com/package/think-meta)Show meta for ThinkJS 3.x
## Install
```
npm install think-meta
```## How to use
config file `src/config/middleware.js`
```js
const meta = require('think-meta');
module.exports = [
{
handle: meta,
options: {}
}
]
```## Support options
```js
{
requestTimeout: 10 * 1000, //request timeout, default is 10s
requestTimeoutCallback: (ctx, options) => {}, //request timeout callback
sendPowerBy: true, //send powerby
sendResponseTime: true, //send response time
logRequest: true //log request
}
```