Permalink
Browse files

coffeescript to js hotfix

  • Loading branch information...
1 parent 031e90a commit fab5fc71773070090eb0a786423fe9aef7e7534d @AVVS committed Feb 12, 2013
Showing with 18 additions and 15 deletions.
  1. +4 −4 index.js
  2. +14 −11 package.json
View
@@ -1,9 +1,9 @@
-a = {"Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N","Г":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"","ё":"yo","й":"i","ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ш":"sh","щ":"sch","з":"z","х":"h","ъ":"","Ф":"F","Ы":"I","В":"V","А":"a","П":"P","Р":"R","О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a","п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH","С":"S","М":"M","И":"I","Т":"T","Ь":"","Б":"B","Ю":"YU","я":"ya","ч":"ch","с":"s","м":"m","и":"i","т":"t","ь":"","б":"b","ю":"yu"}
+a = {"Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N","Г":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"","ё":"yo","й":"i","ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ш":"sh","щ":"sch","з":"z","х":"h","ъ":"","Ф":"F","Ы":"I","В":"V","А":"a","П":"P","Р":"R","О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a","п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH","С":"S","М":"M","И":"I","Т":"T","Ь":"","Б":"B","Ю":"YU","я":"ya","ч":"ch","с":"s","м":"m","и":"i","т":"t","ь":"","б":"b","ю":"yu"};
transliterate = function(word){
return word.split('').map(function(char){
- return if typeof a[char] isnt 'undefined' then a[char] else char
+ return typeof a[char] !== 'undefined' ? a[char] : char;
}).join("");
-}
+};
-module.exports = transliterate
+module.exports = transliterate
View
@@ -1,18 +1,21 @@
{
"name": "transliterate",
- "description": "Transliterates cyrillic symbols into latin ones",
- "keywords": [
- "util",
- "functional",
- ],
- "author": {
- "name": "Vitaly Aminev",
- "email": "v@avvs.co"
+ "version": "0.0.2",
+ "description": "Transliterates cyrillic symbols into latin ones",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
- "url": "git://github.com/AVVS/node-transliteration.git"
+ "url": "https://github.com/AVVS/node-transliteration.git"
},
- "version": "0.0.1",
- "readmeFilename": "README.md"
+ "keywords": [
+ "util",
+ "functional"
+ ],
+ "author": "Vitaly Aminev",
+ "license": "BSD",
+ "readmeFilename": "README.md",
+ "gitHead": "031e90a24c59f9ab5d04956a67c605618d2ae65a"
}

0 comments on commit fab5fc7

Please sign in to comment.