Skip to content

ky-y/status-text

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published