magic-http-status
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

HTTP Status Codes and Messages

Build Status Greenkeeper badge

Install

# With yarn
yarn add magic-http-status
# Or with npm
npm i magic-http-status

Why

To easily prevent using magic numbers for HTTP request and not having to recreate each time variable or enums...

Example

import { MESSAGES, CODES } from 'magic-http-status';

response
    .status(CODES.OK)
    .send({
        message: MESSAGES.OK
    });

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i magic-http-status

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.89 kB

    Total Files

    5

    Last publish

    Collaborators

    • g-ongenae