apistatus
0.3.0 • Public • Published API Status
API status is a simple tool to send API requests and retrieve standard response data.
Install
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)
})
apistatus(require("har.json"), function(statuses){
console.log(statuses)
})
Wishlist
- optionally use the HAR response object to check against, essentially automated API testing
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/)
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.3.0 | 1 | latest |
Version History
Package Sidebar
Install
Weekly Downloads