JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46
  • Score
    100M100P100Q76058F
  • License MIT

Replace unicode characters with ascii equivalent

Package Exports

  • deunicode
  • deunicode/index.js

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 (deunicode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Deunicode

A simple function to replace unicode characters with their ascii counterparts. Most of the replacements come from twilio.

Installation

npm install deunicode

Quickstart

import { deunicode } from 'deunicode';

const text = '\uFF28\u1D07\u029f\u029f\u1D0F \u1D21\u1D0F\u0280\u029f\u1D05\uFE57';

console.log(text) // Hᴇʟʟᴏ ᴡᴏʀʟᴅ﹗
console.log(deunicode(text)) // HELLO WORLD!