popsicle-status

WebJar for popsicle-status

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

popsicle-status
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

popsicle-status
WebJar for popsicle-status
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/blakeembrey/popsicle-status

Скачать popsicle-status

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/popsicle-status/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>popsicle-status</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/popsicle-status/
implementation 'org.webjars.npm:popsicle-status:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/popsicle-status/
implementation ("org.webjars.npm:popsicle-status:2.0.0")
'org.webjars.npm:popsicle-status:jar:2.0.0'
<dependency org="org.webjars.npm" name="popsicle-status" rev="2.0.0">
  <artifact name="popsicle-status" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='popsicle-status', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "popsicle-status" % "2.0.0"
[org.webjars.npm/popsicle-status "2.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

Popsicle Status

NPM version NPM downloads Build status Test coverage

Popsicle middleware for rejecting responses with bad HTTP statuses.

Installation

npm install popsicle-status --save

Usage

import { status } from "popsicle-status";

const middleware = status();

const res = await middleware(req, send);

status(min?: number, max?: number)

Default status codes of min 200 (inclusive) and max 400 (exclusive).

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Версии библиотеки

Версия
2.0.0
1.0.2
1.0.0