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

numeronym

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

numeronym

Convert and/or define numeronyms from a words

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

numeronym

Convert and/or define numeronyms from words

install

You can install it with npm(1)

npm

$ npm install numeronym

or use component(1)

component

$ npm install jwerle/numeronym

usage

numeronym(word)

numeronym() tries its best to create a numeronym representation of a word you provide. It is simple to use and may be useful to someone out there. It was fun to make.

To start using numeronym, just pass it a string argument. All numeronym's created are stored in an internal table

var n = require('numeronym');

console.log( n('canine') ); // k9
console.log( n('internationalization') ); // i18n

api

numeronym(word, [alias|options])

Accepts a word as an argument. An optional alias or options object can be passed as well. In the case of a string alias provied, the creation of a numeronym is skipped and the alias is used as the value.

numeronym.get(word)

Returns the numeronym associated with the provided word

var n = require('numeronym');

n('internationalization'); // i18n
n.get('internationalization'); // i18n

numeronym.lookup(numeronym)

Returns the string used to create numeronym

var n = require('numeronym');

n.lookup'k9'); // canine

pattern syntax

TODO ..

test

$ make test

author

joseph werle

license

MIT

Keywords

word

FAQs

Package last updated on 01 May 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