3.0.0 • Published 8 years ago

httpstatuses v3.0.0

Weekly downloads
40
License
-
Repository
github
Last release
8 years ago

HTTP Statuses

Plain-English interface for working with HTTP status codes.

Build Status badge npm package version badge license badge

Why?

The standard http module provides a STATUS_CODES object that returns a string describing the given status code. While this is quite useful, I want to go the opposite way with the goal of improving code readability.

Example

httpStatuses = require('httpstatuses')
console.log(httpStatuses.not_found) # 404
console.log(httpStatuses[404]) # Not Found

License

This software is released under the MIT license. You can find a copy in LICENSE.txt or at opensource.org.