# @js-items/express

> Concrete implementation of js-items for express

Latest version **1.0.19** (published 2019-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @js-items/express
pnpm add @js-items/express
yarn add @js-items/express
bun add @js-items/express
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.19 |
| Published | 2019-09-24 |
| First published | 2019-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 256.9 KB |
| Known vulnerabilities | 0 (+8 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mariusz Rajczakowski |
| Maintainers | mariocoski |

## Links

- npm: https://www.npmjs.com/package/@js-items/express
- Repository: https://github.com/js-items/express
- Homepage: https://github.com/js-items/express#readme
- Issues: https://github.com/js-items/express/issues
- npm.io page: https://npm.io/package/@js-items/express

## Dependencies (12)

- [uuid](https://npm.io/package/uuid.md) 3.3.3
- [jscpd](https://npm.io/package/jscpd.md) 2.0.16
- [ramda](https://npm.io/package/ramda.md) 0.26.1
- [dotenv](https://npm.io/package/dotenv.md) 8.1.0
- [boolean](https://npm.io/package/boolean.md) 1.0.0
- [codecov](https://npm.io/package/codecov.md) 3.6.1
- [express](https://npm.io/package/express.md) 4.17.1
- [make-error](https://npm.io/package/make-error.md) 1.3.5
- [pre-commit](https://npm.io/package/pre-commit.md) 1.2.2
- [body-parser](https://npm.io/package/body-parser.md) 1.19.0
- [http-status-codes](https://npm.io/package/http-status-codes.md) 1.3.2
- [jscpd-badge-reporter](https://npm.io/package/jscpd-badge-reporter.md) 1.1.3

## Recent versions

- 1.0.19 (latest) — 2019-09-24
- 1.0.18 — 2019-09-20
- 1.0.17 — 2019-09-20
- 1.0.16 — 2019-09-03
- 1.0.15 — 2019-09-03
- 1.0.14 — 2019-09-03
- 1.0.13 — 2019-09-03
- 1.0.12 — 2019-09-02
- 1.0.11 — 2019-09-02
- 1.0.10 — 2019-09-02
- 1.0.9 — 2019-09-01
- 1.0.8 — 2019-08-25
- 1.0.7 — 2019-05-21
- 1.0.6 — 2019-05-14
- 1.0.5 — 2019-05-14
- … 5 more at https://npm.io/package/@js-items/express/versions

## README

# express

[![CircleCI](https://circleci.com/gh/js-items/express.svg?style=svg)](https://circleci.com/gh/js-items/express)
[![codecov](https://codecov.io/gh/js-items/express/branch/master/graph/badge.svg)](https://codecov.io/gh/js-items/express)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/js-items/express.svg)
![jscpd](assets/jscpd-badge.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/js-items/express/badge.svg?targetFile=package.json)](https://snyk.io/test/github/js-items/express?targetFile=package.json)

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](https://github.com/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:

- [ryansmith94](https://github.com/ryansmith94)
- [best-practices-for-a-pragmatic-restful-api](https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api)

---
_Source: https://npm.io/package/@js-items/express · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
