@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.60latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @ky-y./status-text

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

13.8 kB

Total Files

11

Last publish

Collaborators

  • kyoya0819