Comparing version 0.2.0 to 0.3.0
'use strict'; | ||
module.exports = require('./router-ips.json'); | ||
module.exports = new Set(require('./router-ips.json')); |
{ | ||
"name": "router-ips", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "List of common default router IP addresses", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=0.10.0" | ||
"node": ">=4" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -20,3 +20,3 @@ # router-ips [![Build Status](https://travis-ci.org/sindresorhus/router-ips.svg?branch=master)](https://travis-ci.org/sindresorhus/router-ips) | ||
console.log(routerIps.indexOf('192.168.0.1') !== -1); | ||
console.log(routerIps.has('192.168.0.1')); | ||
//=> true | ||
@@ -26,4 +26,11 @@ ``` | ||
## API | ||
### routerIps | ||
Type: `Set` | ||
## License | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3277
35