Latest version : 1.0.1

 Last updated on 2016-02-18T11:26:44.761Z

 Keywords : node, address, validator, validator, net, api, rest

 Downloads :

  • 19 in Last Month

 Links :


No examples found for this package



A small library providing a wrapper for with unirest


shell npm install address-validator-net


```js var addressValidator = require('address-validator-net')(apiKey);

var address1 = addressValidator(address, callbackFunction(returnOfCallbackFunction){ //validates address object //Address object like this: { StreetAddress : "Mühlenstraße 26", City : "Ocholt", PostalCode : "26655", CountryCode : "de" }

returnOfCallbackFunction.isValid() //string "VALID", "SUSPECT" or "INVALID"

returnOfCallbackFunction.serialized() //object if valid address, else false
//Output like this:
  street: 'Mühlenstr.',
  streetnumber: '26',
  postalcode: '26655',
  city: 'Westerstede,Ocholt',
  state: 'Lower Saxony',
  country: 'DE'

returnOfCallbackFunction.serializedString() //string if valid address, else false
//Output like this:
"Mühlenstr. 26,26655 Westerstede,DE"

}); ```


shell npm test


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 0.1.0 Initial release