1.0.19 • Published 5 years ago

@js-items/express v1.0.19

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

express

CircleCI codecov GitHub tag (latest SemVer) jscpd Known Vulnerabilities

express.js implementation of js-items

There is a fantastic alternative to this project (and @js-items/express is based on it): js-entity-repos/express.

The main differences to the @js-entity-repos/express:

  • different naming convention: using item instead of entity
  • cursor based pagination operates using before and after instead of cursor and direction
  • additional totalCount property on pagination object
  • optional enveloping response (GET /endpoint?envelope=true) for clients not capable of working with headers and JSONP
  • granular transactions handlers for each request handler - this could be used for i.e. authentication or permissions checks
  • possibility to override each request handler
  • ability to disable json body parser middleware if already present in the stack (enableJsonBodyParser: false)
  • by default all responses are pretty which improves readability, you can disable that by query param (/endpoint?pretty=false)

Installation:

npm i @js-items/express --save

Credits:

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago