1.4.8 • Published 2 months ago

bulk-whois-parser v1.4.8

Weekly downloads
9
License
BSD-3-Clause
Repository
github
Last release
2 months ago

bulk-whois-parser

Bulk whois data parser. It automatically downloads and caches bulk whois data. It parses and filters the data, and returns it as JavaScript objects. It also removes some format differences across the various whois servers.

Install:

npm install bulk-whois-parser

Import:

import WhoisParser from "bulk-whois-parser";

Usage example:

const filterFunction = (object) => {
    // A function that returns true or false, used to filter the results
    // Make this function as selective as possible, since the amount of whois data
    // can be overwhelming.
}

// The fields you want to see in the object. Use null to get all the fields
const fields = ["inetnum", "inet6num", "remarks"]; 


new WhoisParser({ repos: ["ripe", "lacnic", "apnic", "afrinic", "arin"] })
    .getObjects(["inetnum", "inet6num"], filterFunction, fields)
    .then(objects => {
        // Do something with the objects (array)
    });

You don't have to pass any file or anything, the library will automatically download the data.

Result example:

[
  {
    inet6num: '2001:67c:370::/48',
    netname: 'ietf-ipv6-meeting-network',
    country: 'CH',
    org: 'ORG-IS136-RIPE',
    'admin-c': 'DUMY-RIPE',
    'tech-c': 'DUMY-RIPE',
    status: 'ASSIGNED PI',
    notify: 'ripedb-updates@noc.ietf.org',
    'mnt-by': [ 'RIPE-NCC-END-MNT', 'IETF-MNT', 'netnod-mnt' ],
    'mnt-routes': 'IETF-MNT',
    'mnt-domains': 'ietf-MNT',
    created: '2010-11-18T17:16:42Z',
    'last-modified': '2020-09-14T13:46:23Z',
    source: 'RIPE',
    'sponsoring-org': 'ORG-NIE1-RIPE',
    remarks: [
      'Geofeed https://noc.ietf.org/geo/google.csv',
      '****************************',
      '* THIS OBJECT IS MODIFIED',
      '* Please note that all data that is generally regarded as personal',
      '* data has been removed from this object.',
      '* To view the original object, please query the RIPE Database at:',
      '* http://www.ripe.net/whois',
      '****************************'
    ]
  },
  ...
]

Enjoy!

1.4.8

2 months ago

1.4.7

4 months ago

1.4.6

4 months ago

1.4.5

4 months ago

1.4.4

4 months ago

1.4.3

4 months ago

1.4.2

4 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.3.6

4 months ago

1.3.5

4 months ago

1.3.4

4 months ago

1.3.3

4 months ago

1.3.2

5 months ago

1.3.1

5 months ago

1.3.0

8 months ago

1.2.0

11 months ago

1.2.3

11 months ago

1.2.2

11 months ago

1.2.1

11 months ago

1.1.12

11 months ago

1.1.14

11 months ago

1.1.13

11 months ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.24

2 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago