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

diacritics

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diacritics - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

component.json

@@ -5,3 +5,3 @@ {

"description": "remove diacritics from strings",
"version": "0.0.1",
"version": "0.0.2",
"keywords": [

@@ -8,0 +8,0 @@ "diacritics",

@@ -31,3 +31,3 @@ var DIACRITICS_REMOVAL_MAP = [

base: 'd',
regex: /[D\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u13E7]/g
regex: /[D\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u13E7\u0501]/g
}, {

@@ -62,3 +62,3 @@ base: 'dz',

base: 'l',
regex: /[L\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g
regex: /[L\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780\u026D]/g
}, {

@@ -72,3 +72,3 @@ base: 'lj',

base: 'n',
regex: /[N\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g
regex: /[N\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u043B\u0509]/g
}, {

@@ -75,0 +75,0 @@ base: 'nj',

{
"name": "diacritics",
"version": "0.0.1",
"version": "0.0.2",
"description": "remove diacritics from strings",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,3 +21,3 @@

console.log(removeDiacritics("Iлtèrnåtïonɑlíƶatï߀ԉ"));
// prints "iлternationalizati߀ԉ"
// prints "internationalization"
```

@@ -24,0 +24,0 @@

var removeDiacritics = require('../').remove,
assert = require('assert');
assert.strictEqual(removeDiacritics("Iлtèrnåtïonɑlíƶatï߀ԉ"), "iлternationalizatioԉ");
assert.strictEqual(removeDiacritics("Båcòл ípѕùm ԁoɭ߀r ѕït aϻèt âùtê aԉᏧ߀üïlɭê ƃëéf culρá fïlèt ϻiǥnòn cuρiᏧatat ut êлim tòлɢùê."), "bacoл ipѕum ԁoɭor ѕit amet aute aԉdouilɭe beef culpa filet mignon cupidatat ut eлim toлgue.");
assert.strictEqual(removeDiacritics("Iлtèrnåtïonɑlíƶatï߀ԉ"), "internationalization");
assert.strictEqual(removeDiacritics("Båcòл ípѕùm ԁoɭ߀r ѕït aϻèt âùtê aԉᏧ߀üïlɭê ƃëéf culρá fïlèt ϻiǥnòn cuρiᏧatat ut êлim tòлɢùê."), "bacon ipѕum dolor ѕit amet aute andouille beef culpa filet mignon cupidatat ut enim tongue.");
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