@jobscale/cidr

0.0.7 • Public • Published

@jobscale/cidr

Installation

npm i @jobscale/cidr

Examples

has

const { Cidr } = require('@jobscale/cidr');

new Cidr('0.0.0.0/0').has('160.160.160.160')

new Cidr('160.160.160.160/32').has('160.160.160.160')

new Cidr('160.160.160.160').has('160.160.160.160');

new Cidr([
  '172.16.0.0/12',
  '160.160.160.160/30',
]).has('160.160.160.160');

Jest test

git clone https://github.com/jobscale/cidr.git jobscale-cidr
cd $_
npm test

Readme

Keywords

Package Sidebar

Install

npm i @jobscale/cidr

Weekly Downloads

22

Version

0.0.7

License

MIT

Unpacked Size

7.26 kB

Total Files

6

Last publish

Collaborators

  • jobscale