Miss any of our Open RFC calls?Watch the recordings here! »

@36node/query-normalizr

0.1.2 • Public • Published

@36node/query-normalizr

version downloads

query-normalizr 的作用: 将 url 中的 query 规则化成方便 service 层调用的数据格式。

我们定义了:

  1. 标准的 query in url 格式.
  2. 标准的 service 层 Query 数据格式.

Install

yarn add query-normalizr

Usage

import normalizr from "@36node/query-normalizr";
 
// koa app
app.use(normalizr(options));

API

normalizr(options);

return koa middleware

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

query-normalizr © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

github.com/zzswang · GitHub @36node · Twitter @y

Keywords

none

Install

npm i @36node/[email protected]

Version

0.1.2

License

MIT

Unpacked Size

6.5 kB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar