You can download
npm install phonetic-alphabet-converter
yarn add phonetic-alphabet-converter
<script src="https://unpkg.com/[email protected]/umd/phonetic-alphabet-converter.js"></script> <script> window.PhoneticAlphabetConverter.default(/* string */); </script>
I decided to publish another phonetic alphabet package because I couldn’t find one that builds to UMD.
My end goal was to build a static site so I wanted to load the library over a CDN instead of setting up a complicated build system.
The package is written in TypeScript. The setup did take some time initially; but afterwards, I found it simple to use and enjoyed the type checking.
The downside of TypeScript was that it didn’t support compiling to UMD with a global variable (see issue).
You can check out the code on GitHub. Pull requests are welcome.