JSPM

@stefanprobst/diacritics

1.3.0-umlaut
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 258
  • Score
    100M100P100Q95350F
  • License MIT

remove diacritics from strings

Package Exports

  • @stefanprobst/diacritics

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stefanprobst/diacritics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-diacritics

Remove diacritics from strings.

Useful when implementing some kind of search or filter functionality.

Installation

yarn add @stefanprobst/diacritics

API

var removeDiacritics = require("diacritics").remove;
console.log(removeDiacritics("Iлtèrnåtïonɑlíƶatï߀ԉ"));
// prints "Internationalizati0n"

Umlaut handling

This fork treats Ä, ä, Ö, ö, Ü, ü as German umlaut characters, which are transformed to Ae, ae, Oe, oe, Ue, ue. This differs from upstream behavior! The motivation for this change was to adjust how netlifycms creates slugs using this package.