Package Exports
- ip-filter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ip-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ip-filter

Filter valid IPv4 or IPv6 IP against glob pattern, array, string, regexp or matcher function, if match return the checked IP, otherwise return falsey value.
Install
npm i ip-filter --save
npm testUsage
For more use-cases see the tests
return{String|Null} string when match, otherwisenull
var ipFilter = require('ip-filter')
console.log(ipFilter('123.77.34.89', '123.??.34.8*'))
//=> '123.77.34.89'
console.log(ipFilter('123.222.34.89', ['123.???.34.8*', '!123.222.34.89']))
//=> nullSee also
- apidocs-cli: Async CLI for automatically generating API docs from code comments
- is-missing: Check that given
nameoruser/repoexists in npm registry or in… more - koa-ip-filter: Filter IPs with a glob pattern, regex, string, array or matcher function.… more
- micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster… more
- npm-related: Thin wrapper on top of
helper-relatedfor generating a list of links… more
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. But before doing anything, please read the CONTRIBUTING.md guidelines.