Return a random protocol.
$ npm install --save random-protocol
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'
];
- random-tld - Return a random tld(Top Level Domain).
- random-domains - Return a random domain.
- random-email - Return a random email.
- random-hashtag - Return a random hashtag.
- random-uri - Return a random url.
- random-ipv4 - Return a random ipv4 address.
- random-ipv6 - Return a random ipv6 address.
- random-avatar - Return a URL to a random avatar from Gravatar.
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.