2.0.2 • Published 4 years ago

alpha-bravo v2.0.2

Weekly downloads
7
License
GPL-3.0
Repository
-
Last release
4 years ago

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('test@gmail.com');

Returns tango echo sierra tango @gmail.com

const string = abc.returnAsString('test@domain.com');

Returns tango echo sierra tango @ delta oscar mike alpha india november .com

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago