Licence
MIT
Version
0.2.0
Deps
0
Size
6 kB
Vulns
0
Weekly
0
http-status-code-registry
Fetches the HTTP status codes from the IANA registry.
Install
$ yarn add http-status-code-registry # Or alternatively: `npm install http-status-code-registry`
Usage
'use strict';
const httpStatusCodeRegistry = require('http-status-code-registry');
(async () => {
try {
console.log(await httpStatusCodeRegistry());
} catch (e) {
console.error(e);
}
})();
Testing
$ yarn test # Or alternatively: `npm test`
License
The MIT License (Expat). See the license file for details.