@phonecheck/phone-number-validator-js
Version:
Validate, parse, and enrich international phone numbers — geocoding, carrier lookup, and timezone resolution. Sync (Node) + async (serverless) APIs, platform adapters, and a CLI.
13 lines (12 loc) • 656 B
TypeScript
/**
* Output formatters for the CLI. The runner picks one based on `--format`.
*
* pretty — colored, human-friendly summary (default)
* text — plain ASCII single-line + KV pairs (for piping)
* json — full result as a single JSON line (for tooling)
*/
import type { PhoneValidationResult } from '../serverless/_shared/dispatch';
export declare function verdictLine(result: PhoneValidationResult): string;
export declare function formatJson(result: PhoneValidationResult): string;
export declare function formatText(result: PhoneValidationResult): string;
export declare function formatPretty(result: PhoneValidationResult): string;