Node.js module for formatting customer data according to Amazon Ads Audience requirements. Version 1.0.2 provides normalization for phone numbers, addresses, country names, email addresses, postal codes, and complete customer records. It handles country-dependent formatting rules (e.g., US phone numbers) and standardizes casing. Lightweight and focused solely on Amazon's DSP audience specs, unlike general data-cleaning libraries.
npm install amazon-dsp-formatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing the class, instantiating, and formatting phone, address, country, email, postal code, and a full record.
Ensure you pass a valid country code like 'us'; otherwise behavior may be undefined.
Use const Formatter = require('amazon-dsp-formatter') or await import('amazon-dsp-formatter') with default export.Verify output against your specific Amazon Ads requirements.
Use const AmazonAdsFormatter = require('amazon-dsp-formatter');Use new AmazonAdsFormatter() with parentheses.
Ensure you require the module before using it.
No dependency data recorded yet.