0.1.0 • Published 5 years ago

nu-expiry v0.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

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.