random-revisitor
v1.0.0
Published
get a random revisit service
Downloads
4
Readme
random-revisitor
get a random revisit service
usage
$ npm i -g random-revisitor
$ random-revisitor
http://glitch.nothingissacred.org/glitchclamp
# Also supports filtering by type
$ random-revisitor gif
http://glitch.nothingissacred.org/redblueshift
programmatic usage:
var randomRevisitor = require('random-revisitor')
randomRevisitor(function (err, random) {
if (err) { console.error(":'("); process.exit(1) }
console.log('there is a service at %s', random)
})
// also filter by type
randomRevisitor('gif', function (err, random) {
if (err) { console.error(":'("); process.exit(1) }
console.log('there is a gif service at %s', random)
})
api
###randomRevisitor : (Function<Error, serviceUrl:String>) => void
return a random url from a service on hub.revisit.link that is online.
###randomRevisitor : (type, Function<Error, serviceUrl:String>) => void
return a random url from a service on hub.revisit.link that supports type
and is online.
installation
$ npm install random-revisitor
running the tests
$ npm test
contributors
- jden [email protected]
- flet @flettre
license
ISC. (c) MMXIV jden [email protected]. See LICENSE.md