url-code-status
v1.0.2
Published
Smart way to get the HTTP status code associated to any URL.
Downloads
16
Readme
url-code-status
Smart way to get the HTTP status code associated to any URL.
Install
$ npm install url-code-status --save
Usage
;(async () => {
const urlCodeStatus = require('urlCodeStatus')
const statusCode = await urlCodeStatus('https://kikobeats.com')
// => 200
})()
See more examples.
API
urlCodeStatus(url, [options])
url
Required
Type: string
The target URL.
options
Use it for providing got#options.
License
url-code-status © Kiko Beats, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub @Kiko Beats · Twitter @Kikobeats