Socket
Socket
Sign inDemoInstall

statuses

Package Overview
Dependencies
0
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

2

codes.json

@@ -51,3 +51,3 @@ {

"431": "Request Header Fields Too Large",
"451": "Unable For Legal Reasons",
"451": "Unavailable For Legal Reasons",
"500": "Internal Server Error",

@@ -54,0 +54,0 @@ "501": "Not Implemented",

{
"name": "statuses",
"description": "HTTP status utility",
"version": "1.2.0",
"version": "1.2.1",
"author": {

@@ -27,4 +27,3 @@ "name": "Jonathan Ong",

"mocha": "1",
"request": "^2.44.0",
"stream-to-array": "^2.0.2"
"stream-to-array": "2"
},

@@ -31,0 +30,0 @@ "scripts": {

@@ -22,4 +22,4 @@ # Statuses

```js
status(403) // => 403
status('403') // => 403
status(403) // => 'Forbidden'
status('403') // => 'Forbidden'
status('forbidden') // => 403

@@ -26,0 +26,0 @@ status('Forbidden') // => 403

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc