httpstatus-str
v1.0.1
Published
Given a string "status code", httpstatus returns status text.
Downloads
3
Readme
HTTPStatus
HTTPStatus is a lean lookup table to match a given status code to its status text.
What make it different than others is that it uses string as a lookup key.
Installation
npm install -g httpstatus-str
npm install httpstatus-str
Node.js
const HTTPStatus = require('httpstatus-str');
console.log(HTTPStatus["200"]);
Command Line
> httpstatus 200
OK