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

phonetic-alpha

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phonetic-alpha

A Node module that produces phonetic text based on nato, western or morse words

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

phonetic-alpha

This is an npm package

A simple node module to convert a string of characters to a list of words

Usage Installation To install run npm install phonetic-alpha

To use:

var x = require('phonetic-alpha');

…

console.log(x.expand('abc')); 
// will return 
// 'Alpha, Bravo, Charlie'

console.dir(x.list('abc')); 
// will return:
[   { index: 0, character: 'a', word: 'Alpha' }, 
    { index: 1, character: 'b', word: 'Bravo' }, 
    { index: 2, character: 'c', word: 'Charlie' } ]

The expand & list functions also support three phonetic alphabets, including nato : Nato Phonetic Alphabet (default set if not specified) west : Western Phonetic Alphabet morse: Morse Code Alphabet

Here is an example of display of SOS morse code:

var x = require('phonetic-alpha');
console.log( x.expand('sos', 'morse') );

Output: . . .  - - -  . . .

FAQs

Package last updated on 21 Dec 2015

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