@vladbasin/strong-api-constants
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Strong API constants

HTTP protocol useful constants (headers, status codes, content types, methods)

Installation

npm

npm install @vladbasin/strong-api-constants

yarn

yarn add @vladbasin/strong-api-constants

Usage

import { HttpContentTypes, HttpHeaders, HttpRequestMethods, HttpStatusCodes } from '@vladbasin/strong-api-constants';

console.log(HttpHeaders.AcceptCharset);
console.log(HttpRequestMethods.Post);
console.log(HttpContentTypes.ApplicationJson);
console.log(HttpStatusCodes.Accepted);

Readme

Keywords

Package Sidebar

Install

npm i @vladbasin/strong-api-constants

Weekly Downloads

26

Version

1.0.0

License

GPL-3.0-only

Unpacked Size

57.1 kB

Total Files

27

Last publish

Collaborators

  • vladbasin