0.1.1 • Published 1 year ago

cute-status-codes v0.1.1

Weekly downloads
-
License
CC-BY-4.0
Repository
github
Last release
1 year ago

available on npmjs

cute-status-codes

A package that provides cute status codes for your applications.

Features

  • Easy-to-use cute status codes.
  • Lightweight and efficient.
  • They map to numbers simply.

Getting Started

Installation

  1. Install cute-status-codes locally.

npm install cute-status-codes

Usage

import { OK, GONE } from 'cute-status-codes'; // LOOK AT CODE FOR REF
import cors from 'cors';

// SERVERLESS FUNCTION EXAMPLE
export const cloudFunc = (req, res) =>
{
    cors()(req, res, async () =>
    {
        if (?) return res.status(OK).send('text');
        res.sendStatus(GONE);
    });
};
0.1.1

1 year ago

0.1.0

1 year ago