API Status

API status is a simple tool to send a request to an API and return response information.
Install
npm install apistatus
Usage
var apistatus = require('apistatus')
apistatus('http://mockbin.com/status/200', function(status){
console.log(status)
})
apistatus('http://mockbin.com/status/404', function(status){
console.log(status)
})
apistatus('http://notarealdomain35252.com/', function(status){
console.log(status)
})
Wishlist
- optional HAR object for the requests to use for full API coverage beyond simple GET requests
- optional HAR object for the response to check against, essentially automated API testing
- a website with logs of status changes and support for periodic checking of saved APIs
Contributing
Forks and pull requests are most welcomed. Please run npm test
before sending a pull request.
MIT license
Copyright (c) 2015, Mashape (https://www.mashape.com/)