random-ipv4
Return a random ipv4 address.
Install
$ npm install --save random-ipv4
Usage
For more use-cases see the tests
var randomIpv4 = ; // API// - randomIpv4(schema[, options]); ;// => 193.31.235.41 ;// => 127.0.216.1 ;// => 127.188.153.3
Note:
schema
- the ipv4 schema, default'{token1}.{token2}.{token3}.{token4}'
.options
- options for every token, each token hasmin
andmax
option, which both are from0
to255
.
Related
- random-ipv6 - Return a random ipv6 address.
- random-tld - Return a random tld(Top Level Domain).
- random-domains - Return a random domain.
- random-email - Return a random email.
- random-protocol - Return a random protocol.
- random-hashtag - Return a random hashtag.
- random-uri - Return a random url.
- random-avatar - Return a URL to a random avatar from Gravatar.
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.