popsicle-status

WebJar for popsicle-status

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

popsicle-status
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

popsicle-status
WebJar for popsicle-status
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download popsicle-status

How to add to project

<!-- 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"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
2.0.0
1.0.2
1.0.0