Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npa

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npa

Convert strings of text to/from NATO phonetic alphabet and morse code.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-80.49%
Maintainers
1
Weekly downloads
 
Created
Source

NPA (v0.1.1)

Install: npm install npa

This project is Unlicensed. In other words, I don't care what you do with it. However, if you make something interesting, I would like to check it out.

Information:

Well, the wiki article probably says enough. Find it here.

NOTE: This was just for fun. Inspired by "Foxtrot Uniform Charlie Kilo" - Bloodhound Gang.

Usage:

var NPA = require('npa')();

NPA.toNPA(string) - Convert a string to NPA.

NPA.fromNPA(string) - Convert a string from NPA.

NPA.toMorse(string) - Convert a string to morse code.

NPA.fromMorse(string) - Convert a string from morse code.


Node.js:
   var NPA = require('npa')(),
       string = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla interdum.';
   var morse = NPA.toMorse(string);
   console.log('(toMorse) '+string+':\n '+morse+'\n\n');
   console.log('(fromMorse) '+morse+':\n '+NPA.fromMorse(morse)+'\n\n');
   var npa = NPA.toNPA(string);
   console.log('(toNPA) '+string+':\n '+npa+'\n\n');
   console.log('(fromNPA) '+npa+':\n '+NPA.fromNPA(npa)+'\n\n');

Browser:
   <script src="./npa.js"></script>
   <script>
      var string = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla interdum.',
          morse = NPA.toMorse(string);
      alert('(toMorse) '+string+':\n '+morse+'\n\n');
      alert('(fromMorse) '+morse+':\n '+NPA.fromMorse(morse)+'\n\n');
      var npa = NPA.toNPA(string);
      alert('(toNPA) '+string+':\n '+npa+'\n\n');
      alert('(fromNPA) '+npa+':\n '+NPA.fromNPA(npa)+'\n\n');
   </script>

Keywords

FAQs

Package last updated on 01 Jun 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc