Check if a number is a redirect HTTP status code
MIT License
$ npm install is-redirect
import isRedirect from 'is-redirect'; isRedirect(302); //=> true isRedirect(200); //=> false
Check if a path is in the current working directory
Check if your code is running as an npm or yarn script
url.parse() with support for protocol-less URLs & IPs
Check if a path exists
Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`
Check if a URL is absolute
Check if a URL is relative
Check whether a request can be retried based on the `error.code`
Check if something is a generator function
Check if the internet connection is up
Check if servers are reachable
Check if something is a promise
Node.js `http.STATUS_CODES` ponyfill
Check if a string is a URL
Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev