nu-expiry

0.1.0 • Public • Published

NU Expiry

A simple wrapper to get the list of .nu domains expiring soon. Everything is Promise-based.

Data fetched from Internetstiftelsen.

Example usage

Simple example using the wrapper.

const expiry = require('nu-expiry');
 
expiry
  .fetch()
  .then(data => {
    expiry
      .parse(data)
      .then(stash => {
        // Instance of Domains
      })
      .catch(error => {
        console.error(error);
      });
  })
  .catch(error => {
    console.error(error);
  });

Once there is an instance of the Domains-class, the order(by = 'date') method can be used to sort domains by date or length.

/nu-expiry/

    Package Sidebar

    Install

    npm i nu-expiry

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    6.35 kB

    Total Files

    9

    Last publish

    Collaborators

    • devmaximilian