alpha-bravo
v2.0.2
Published
Alpha Bravo parses a string and returns the NATO phonetic word for each charcter.
Downloads
36
Readme
Alpha Bravo
Alpha Bravo parses a string and returns the NATO phonetic word for each charcter.
Installation
$ npm install alpha-bravo
Usage
const abc = require('alpha-bravo');
Alpha Bravo returns the text either as a simple text string or as a HTML formatted string
Example
Return as string
const string = abc.returnAsString('alpha-bravo');
Result is a simple string
alpha lima papa hotel alpha - bravo romeo alpha victor oscar
Return as HTML
const string = abc.returnAsHTML('UPPERlower123');
Result is formatted HTML with uppercase letters bold and numbers italic
UNIFORM PAPA PAPA ECHO ROMEO lima oscar whiskey echo romeo one two three
Parsing Email Address
When encoutnering an email address alpha-bravo checks against a list of popular email domains and returns the domain as one word instead of breaking it down to seperate words
const string = abc.returnAsString('[email protected]');
Returns tango echo sierra tango @gmail.com
const string = abc.returnAsString('[email protected]');
Returns tango echo sierra tango @ delta oscar mike alpha india november .com