@ky-y./status-text
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

@ky-y./status-text

Install

$ npm install @ky-y./status-text
$ yarn add @ky-y./status-text
  • Not @ky-y/status-text But @ky-y./status-text.
  • Support TypeScript

Usage

import { HTTP200, HTTP405 } from "@ky-y./status-text";

console.log(HTTP200); // => "OK"
console.log(HTTP405); // => "Method Not Allowed"



import { statusText } from "@ky-y./status-text";

console.log(statusText(200)); // => "OK"
console.log(statusText(405)); // => "Method Not Allowed"
console.log(statusText(999)); // => "Unknown Status"

License

MIT License

Acknowledgments

Links

Readme

Keywords

none

Package Sidebar

Install

npm i @ky-y./status-text

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

13.8 kB

Total Files

11

Last publish

Collaborators

  • kyoya0819