@tselect/status-code
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

StatusCode

npm npm npm

Enums and utilities around status codes.

Installation

npm i @tselect/status-code

Usage

import { StatusCode, isStatusCode, is5xx } from '@tselect/status-code';

StatusCode.OK; // 200
isStatusCode(200); // true
is5xx(StatusCode.INTERNAL_SERVER_ERROR); // true

Package Sidebar

Install

npm i @tselect/status-code

Weekly Downloads

26

Version

1.0.2

License

MIT

Unpacked Size

1.37 MB

Total Files

32

Last publish

Collaborators

  • sylvainestevez