Skip to content

mock-end/random-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published