random-protocol

Return a random protocol.

Usage no npm install needed!

<script type="module">
  import randomProtocol from 'https://cdn.skypack.dev/random-protocol';
</script>

README

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.