@plexis/without-diacritics
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -1,11 +0,11 @@ | ||
export | ||
/** | ||
* @description Cleanups a string from diacritics | ||
* @param {String} text | ||
* @example | ||
* toPred('áéíóú') // returns 'aeiou' | ||
*/ | ||
* @description Cleanups a string from diacritics | ||
* @param {String} text | ||
* @example | ||
* toPred('áéíóú') // returns 'aeiou' | ||
*/ | ||
var withoutDiacritics = function withoutDiacritics(text) { | ||
return text.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); | ||
}; | ||
export default withoutDiacritics; |
"use strict"; | ||
exports.__esModule = true; | ||
exports["default"] = exports.withoutDiacritics = void 0; | ||
exports["default"] = void 0; | ||
/** | ||
* @description Cleanups a string from diacritics | ||
* @param {String} text | ||
* @example | ||
* toPred('áéíóú') // returns 'aeiou' | ||
*/ | ||
* @description Cleanups a string from diacritics | ||
* @param {String} text | ||
* @example | ||
* toPred('áéíóú') // returns 'aeiou' | ||
*/ | ||
var withoutDiacritics = function withoutDiacritics(text) { | ||
@@ -16,4 +16,3 @@ return text.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); | ||
exports.withoutDiacritics = withoutDiacritics; | ||
var _default = withoutDiacritics; | ||
exports["default"] = _default; |
{ | ||
"name": "@plexis/without-diacritics", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"jsnext:main": "./src/index.js", | ||
"authors": [ | ||
@@ -10,6 +11,17 @@ "Theodore Vorillas <vorillaz@gmail.com> (https://vorillaz.com)" | ||
"license": "MIT", | ||
"keywords": [ | ||
"utility", | ||
"string", | ||
"parse", | ||
"format", | ||
"validate" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/plexis-js/plexis.git" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"gitHead": "d85f23d866251ee16b143f6776299fcc2cb96abc" | ||
"gitHead": "ba3ebd6492a002b8483add45fa098db086daec65" | ||
} |
@@ -1,2 +0,2 @@ | ||
export /** | ||
/** | ||
* @description Cleanups a string from diacritics | ||
@@ -3,0 +3,0 @@ * @param {String} text |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2749
6
0
35