| 1 |
Source: node-accepts |
| 2 |
Section: javascript |
| 3 |
Priority: optional |
| 4 |
Maintainer: Debian Javascript Maintainers <[email protected]> |
| 5 |
Uploaders: Yadd <[email protected]> |
| 6 |
Testsuite: autopkgtest-pkg-nodejs |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
, dh-sequence-nodejs |
| 9 |
, mocha <!nocheck> |
| 10 |
, node-deep-equal <!nocheck> |
| 11 |
, node-mime-types <!nocheck> |
| 12 |
, node-negotiator <!nocheck> |
| 13 |
, node-should <!nocheck> |
| 14 |
Standards-Version: 4.6.0 |
| 15 |
Rules-Requires-Root: no |
| 16 |
Homepage: https://github.com/jshttp/accepts |
| 17 |
Vcs-Git: https://salsa.debian.org/js-team/node-accepts.git |
| 18 |
Vcs-Browser: https://salsa.debian.org/js-team/node-accepts |
| 19 |
|
| 20 |
Package: node-accepts |
| 21 |
Architecture: all |
| 22 |
Depends: ${misc:Depends} |
| 23 |
, node-mime-types |
| 24 |
, node-negotiator |
| 25 |
Multi-Arch: foreign |
| 26 |
Description: higher-level content negotiation for Node.js |
| 27 |
Higher level content negotiation based on negotiator. |
| 28 |
. |
| 29 |
In addition to negotiator, it allows: |
| 30 |
- Allows types as an array or arguments list, ie |
| 31 |
`(['text/html', 'application/json'])` |
| 32 |
as well as `('text/html', 'application/json')`. |
| 33 |
- Allows type shorthands such as `json`. |
| 34 |
- Returns `false` when no types match |
| 35 |
- Treats non-existent headers as `*` |
| 36 |
. |
| 37 |
Node.js is an event-based server-side JavaScript engine. |