Formatters

formatPhone.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

const

formatPhone

Target Style
export const formatPhone = (int) => {

Formats a 10-digit Russian phone number body into +7 (...) ...-..-...

Target style API. Preferred for new code.

Parameters

  • intnumber | string

Returns

string

Legacy Style

Legacy Style

0 exports

No legacy exports in this module.