Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

base-statuscode

0.1.1 • Public • Published

base-statuscode

NPM version build status Test coverage

Reduce a statuscode to its base.

Installation

$ npm i --save base-statuscode

Overview

var baseStatus = require('base-statuscode');
 
baseStatus(404);
// => 400
 
baseStatus(205);
// => 200

License

MIT © Yoshua Wuyts

Keywords

none

install

npm i base-statuscode

Downloadsweekly downloads

2

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar