random-revisitor

1.0.0 • Public • Published

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

license

ISC. (c) MMXIV jden jason@denizac.org. See LICENSE.md

Readme

Keywords

Package Sidebar

Install

npm i random-revisitor

Weekly Downloads

3

Version

1.0.0

License

ISC

Last publish

Collaborators