http-status-text

1.0.5 • Public • Published

HTTP Status Text

HTTP Status Text is a simple JavaScript module that returns the corresponding status text for a given HTTP status code. It can be easily integrated into Node.js projects as well as front-end JavaScript applications.

Features

  • Returns the corresponding status text for any HTTP status code.
  • Compatible with both Node.js and browser environments.
  • Lightweight and fast implementation for efficient usage.

Installation

npm install http-status-text

Usage

const { httpStatusText } = require("http-status-text");

console.log(httpStatusText(200)); // "OK"
console.log(httpStatusText(404)); // "Not Found"
console.log(httpStatusText(500)); // "Internal Server Error"

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i http-status-text

    Weekly Downloads

    3

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    3.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • kuangyujing