1.0.9 • Published 1 year ago
another-http-status v1.0.9
anotherhttp-status
another-http-status is a module I created to simplify handling STATUS codes.
Installation
npm install another-http-status
Usage
CommonJS:
const { OK } = require('http-status');
console.log(String(OK), typeof String(OK), Number(OK), typeof Number(OK));
// OK string 200 number
ES6 Module:
import { OK } from 'http-status';
console.log(String(OK), typeof String(OK), Number(OK), typeof Number(OK));
// OK string 200 number