New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@toluwap/phone-number-formatter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toluwap/phone-number-formatter

convert any valid Nigeria phone number to international format

latest
Source
npmnpm
Version
2.1.3
Version published
Maintainers
1
Created
Source

Phone Number Formatter

🧐 About

Format any valid Nigeria number into an international format.

Installing

$ npm install @toluwap/phone-number-formatter --save

Usage

const { convertNigeriaPhoneNumberToInternationFormat } = require('@toluwap/phone-number-formatter');
import { convertNigeriaPhoneNumberToInternationFormat } from '@toluwap/phone-number-formatter';
//using array of phoneNumbers
const phoneNumbers = ['08012345678', '2348102345678', '07012345678', '+23481098765432'];

const phoneNumbers1 = convertNigeriaPhoneNumberToInternationFormat({phoneNumbers: phoneNumbers});
// ['2348012345678', '2348102345678', '2347012345678', '23481098765432']

//adding prepend to the numbers
const phoneNumbers1 = convertNigeriaPhoneNumberToInternationFormat({phoneNumbers: phoneNumbers, options: { prepend: '+'}});
//['+2348012345678', '+2348102345678', '+2347012345678', '+23481098765432']

Keywords

Nigeria

FAQs

Package last updated on 04 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts