addressr
v1.0.4
Published
Addressr API wrapper
Readme
Addressr Node.js Library
The Addressr Node library provides access to the Addressr API.
Documentation
See instructions on using the API
Installation
Install the package with:
npm install addressr --saveUsage
Configure the package with your key and secret.
var options = {
key: 'key...',
secret: 'secret...'
};
const addressr = require('addressr')(options);Resolve an address with a promise:
addressr.resolveAddress('virtual-address')
.then(function(address) {
address; // the address object
});Resolve an address with a callback:
addressr.resolveAddress('virtual-address', function(address) {
address; // the address object
});