another-http-status
v1.0.9
Published
another-http-status is a module I created to use in all my express/RESTful apps.
Readme
anotherhttp-status
another-http-status is a module I created to simplify handling STATUS codes.
Installation
npm install another-http-statusUsage
CommonJS:
const { OK } = require('http-status');
console.log(String(OK), typeof String(OK), Number(OK), typeof Number(OK));
// OK string 200 numberES6 Module:
import { OK } from 'http-status';
console.log(String(OK), typeof String(OK), Number(OK), typeof Number(OK));
// OK string 200 number