1.0.2 • Published 9 years ago

http-code-parser v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

HTTP Code Parser

NPM module to parse HTTP status codes into something more useable.

https://www.npmjs.com/package/http-code-parser

Install

npm install http-code-parser

Usage

Running:

var http_code_parser = require('http-code-parser');
var Status = http_code_parser.parse(201);

Results in:

{
  success: true,
  error: false,
  redirect: false,
  friendly: 'Created',
  code: 201,
  type: "success"
}
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago