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

latenize

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

latenize - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

70

latinize_map.js

@@ -990,3 +990,71 @@ module.exports = {

'ᵥ': 'v', // LATIN SUBSCRIPT SMALL LETTER V
'ₓ': 'x' // LATIN SUBSCRIPT SMALL LETTER X
'ₓ': 'x', // LATIN SUBSCRIPT SMALL LETTER X
// Cyrillic characters to latin
'Ё': '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'
};

56

package.json
{
"name": "latenize",
"description": "Npm/NodeJS port of Semplice latinise/latenize",
"version": "0.1.0",
"homepage": "https://github.com/FGRibreau/latenize",
"author": "Francois-Guillaume Ribreau <npm@fgribreau.com> (http://fgribreau.com)",
"repository": {
"type": "git",
"url": "git://github.com/FGRibreau/latenize.git"
},
"bugs": {
"url": "https://github.com/FGRibreau/latenize/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/FGRibreau/latenize/blob/master/LICENSE-MIT"
}
],
"main": "index.js",
"engines": {
"node": ">= 0.6.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.3.15"
},
"keywords": ["string", "latin"]
"name": "latenize",
"description": "Npm/NodeJS port of Semplice latinise/latenize",
"version": "0.2.0",
"homepage": "https://github.com/FGRibreau/latenize",
"author": "Francois-Guillaume Ribreau <npm@fgribreau.com> (http://fgribreau.com)",
"repository": {
"type": "git",
"url": "git://github.com/FGRibreau/latenize.git"
},
"bugs": {
"url": "https://github.com/FGRibreau/latenize/issues"
},
"licenses": [{
"type": "MIT",
"url": "https://github.com/FGRibreau/latenize/blob/master/LICENSE-MIT"
}],
"main": "index.js",
"engines": {
"node": ">= 0.6.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.3.15"
},
"keywords": ["string", "latin"]
}

@@ -1,2 +0,2 @@

# Latenize
# Latenize [![Gittip](http://badgr.co/gittip/fgribreau.png)](https://www.gittip.com/fgribreau/)

@@ -20,2 +20,5 @@ NPM/NodeJS port of Semplice latenize

## Donate
[Donate Bitcoins](https://coinbase.com/checkouts/fc3041b9d8116e0b98e7d243c4727a30)
## License

@@ -22,0 +25,0 @@ [Semplice](http://semplicewebsites.com/removing-accents-javascript)

@@ -29,4 +29,5 @@ var latenize = require('../index.js');

'latenize': function(t) {
t.expect(5);
t.expect(6);
t.equal(latenize("Piqué"), "Pique");
t.equal(latenize("Артём Риженков"), "Artyom Rizhenkov");
t.equal(latenize("Solución"), "Solucion");

@@ -33,0 +34,0 @@ t.equal(latenize.isLatin("Piqué"), false);

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