1.0.1 • Published 8 years ago

random-protocol v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

random-protocol

Return a random protocol.

MIT License

build:? coverage:?

Install

$ npm install --save random-protocol 

Usage

var randomProtocol = require('random-protocol');

// API
// - randomProtocol();

randomProtocol();
// => http

Return one of the following protocols:

[
  'http',
  'https',
  'ftp',
  'gopher',
  'mailto',
  'mid',
  'cid',
  'news',
  'nntp',
  'prospero',
  'telnet',
  'rlogin',
  'tn3270',
  'wais'
];

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.