0.1.0 • Published 5 years ago
nu-expiry v0.1.0
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.
0.1.0
5 years ago