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

unidecode

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unidecode

ASCII transliterations of Unicode text

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51K
decreased by-82.72%
Maintainers
1
Weekly downloads
 
Created

What is unidecode?

The unidecode npm package is used to transliterate Unicode text into plain ASCII characters. This is particularly useful for converting non-Latin scripts into a readable and searchable format.

What are unidecode's main functionalities?

Basic Transliteration

This feature allows you to convert non-Latin scripts into their closest ASCII representation. For example, Chinese characters are converted to their pinyin equivalents.

const unidecode = require('unidecode');
console.log(unidecode('你好,世界')); // Output: Ni Hao , Shi Jie

Handling Accented Characters

This feature removes accents from Latin characters, making them plain ASCII. This is useful for normalizing text for search or comparison.

const unidecode = require('unidecode');
console.log(unidecode('Café')); // Output: Cafe

Transliteration of Special Characters

This feature converts special characters and ligatures into their ASCII equivalents, making the text more universally readable.

const unidecode = require('unidecode');
console.log(unidecode('Æther')); // Output: AEther

Other packages similar to unidecode

Keywords

FAQs

Package last updated on 02 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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