from-family

1.1.1 • Public • Published

from-family

Checks the family of a HTTP status code.

Usage

$ npm install from-family
(...)
$ node
> var fromFamily = require('from-family')
undefined
> fromFamily.success(201)     // 201 (Created) is from "Success" family
true
> fromFamily.clientError(res) // It also reads response's 'statusCode'
false

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    8
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i from-family

Weekly Downloads

8

Version

1.1.1

License

Fair

Last publish

Collaborators

  • talles