New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

confusables

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confusables

A library to interact with Unicode Confusables in strings.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17K
increased by1.38%
Maintainers
1
Weekly downloads
 
Created
Source

npm MIT gzip size

Confusables

This library allows you to easily remove confusables from a string.

Confusables is currently in early development. Anything may change at any time. The public API should not be considered stable until version 1.0.0.

Installation

yarn add confusables

npm install confusables

Usage

const { remove, obfuscate } = require('confusables');

const weirdString = 'Ἢἕļľᦞ ш٥ṟlᑰ! Hello World!';

const normalString = remove(weirdString);

console.log(normalString); // Hello World! Hello World!

What are confusables?

Confusable characters are those that may be confused with others (in some common UI fonts), such as the Latin letter "o" and the Greek letter omicron "ο". Fonts make a difference: for example, the Hebrew character "ס" looks confusingly similar to "o" in some fonts (such as Arial Hebrew), but not in others.

Source

FAQs

Package last updated on 20 May 2019

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