JSPM

loopback3-xtotalcount

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 340
  • Score
    100M100P100Q99541F
  • License MIT

Add X-Total-Count header to all search requests for Loopback 3.0

Package Exports

  • loopback3-xtotalcount

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback3-xtotalcount) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

loopback3-xTotalCount

Add X-Total-Count header to all search requests for Loopback 3.0. It should be use on client that use json-server, such as admin-on-rest

Install

  1. Add "loopback3-xtotalcount": "latest" to your package.json file.
  2. Run npm install OR run npm install loopback3-xtotalcount
  3. Set the module in your server.js (loopback server endpoint)
require('loopback3-xtotalcount')(app);

We recommend to use yarn instead of npm:

  1. yarn add loopback3-xtotalcount
  2. Set the module in your server.js
require('loopback3-xtotalcount')(app);

Thanks

License

This module is licensed under the MIT Licence.