0.0.2 • Published 13 years ago
numeronym v0.0.2
numeronym
Convert and/or define numeronyms from a words
install
You can install it with npm(1)
npm
$ npm install numeronymor use component(1)
component
$ npm install jwerle/numeronymusage
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')l
console.log( n('canine') ); // k9
console.log( n('internationalization') ); // i18napi
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'); // i18nnumeronym.lookup(numeronym)
Returns the string used to create numeronym
var n = require('numeronym');
n.lookup'k9'); // caninepattern syntax
TODO ..
test
$ make testauthor
joseph werle
license
MIT