+10
-5
@@ -100,2 +100,4 @@ module.exports = numeronym | ||
| // options object may be in the alias argument | ||
| var options = (typeof alias === 'object') ? alias : {} | ||
| // maybe they know whats best and they | ||
@@ -114,4 +116,5 @@ // can set their own value, save us from working | ||
| // everything done in lowercase | ||
| word = word.toLowerCase(); | ||
| // everything done in lowercase unless other wise stated | ||
| if (!options.preserve) | ||
| word = word.toLowerCase(); | ||
@@ -138,5 +141,2 @@ // fix white space | ||
| }); | ||
| // options object may be in the alias argument | ||
| var options = (typeof alias === 'object') ? alias : {} | ||
@@ -304,2 +304,7 @@ // iterate over each | ||
| word = word.replace(/\s+/g, ''); | ||
| // add space to space identifiers | ||
| word = word.replace(/%s/g, ' '); | ||
| word = word.replace(/%n/g, '\n'); | ||
| word = word.replace(/%t/g, '\t'); | ||
| word = word.replace(/%r/g, '\r'); | ||
@@ -306,0 +311,0 @@ // to upper case? |
+1
-1
| { | ||
| "name": "numeronym", | ||
| "version": "0.0.0", | ||
| "version": "0.0.1", | ||
| "description": "Convert and/or define numeronyms from a words", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+3
-3
| numeronym | ||
| ====== | ||
| Convert and/or define numeronyms from a words | ||
| Convert and/or define numeronyms from words | ||
@@ -29,3 +29,3 @@ | ||
| ```js | ||
| var n = require('numeronym')l | ||
| var n = require('numeronym'); | ||
@@ -76,2 +76,2 @@ console.log( n('canine') ); // k9 | ||
| ## license | ||
| MIT | ||
| MIT |
13742
1.66%344
1.78%76
1.33%