1.0.2 • Published 6 years ago

url-code-status v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

url-code-status

Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status Donate

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