Level365 - Phone Number Formatter
AI-generatedSummary
Formats the configured phone number using libphonenumber-js and the selected default country. Adds parsed country, calling code, national number, national and international formats, E.164 and RFC3966 formats, and number type to each output item.
Inputs
- Default Country (required) — Country code used to parse the phone number when needed.
- Phone Number (required) — Phone number to format; may be supplied with a leading international country code.
- Keep Only Set — Defaults to false. When enabled, removes the input item's existing JSON and binary data; when disabled, preserves them alongside the formatter fields.
Output shape
One output item per input item, each with a JSON object containing the formatter fields; existing binary data is also passed through when Keep Only Set is false.
Adds
country,countryCallingCode,nationalNumber,formatNational,formatInternational,formatE164,formatRFC3966, andtype. If parsing does not produce a number, these fields are empty strings. With no input items, the node processes an empty JSON item.