npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

unicode-le

v1.2.1

Published

Find the Unicode characters in a codebase that hide meaning: Trojan Source bidi controls, invisibles, homoglyphs and mixed scripts. Reports codepoints, never the characters.

Readme

unicode-le

Find the Unicode characters in a codebase that hide meaning: the Trojan Source bidirectional controls, invisibles, homoglyphs, words that mix scripts, text that is not in NFC, spaces that are not the space, and codepoints with no assigned meaning.

npx unicode-le src/
npx unicode-le --fail-on bidi . > unicode.json
git diff | npx unicode-le --stdin

The command it installs is unicode-le, the same command line as the Rust crate unicode-le, and it behaves identically: same flags, same walk, same findings, same output, same exit codes. Install whichever toolchain you already have.

What it reports

Codepoints, never the characters themselves: a report that quoted them would carry the attack to whoever read it. Every non-ASCII character in its output, a path or a key included, is written as a \uXXXX escape. It never rewrites a file.

A file plainly written in another script is not judged for confusables, and says so. Name the scripts a tree is expected to contain with --script, such as --script Cyrillic,Han, to have those files judged too.

Directories are walked the way ripgrep walks them: .gitignore, .ignore and hidden files are respected unless you pass --no-ignore or --hidden. It reads UTF-8. A file with a UTF-16 or UTF-32 byte-order mark, a binary file and one that is not valid UTF-8 are refused rather than guessed at, and each refusal is reported.

Output

stdout carries one JSON document whenever it is piped or redirected, and nothing when it is a terminal. stderr lists every finding.

$ unicode-le src
src/auth.js:1:21  [high] bidi-control U+202E  right-to-left override: a bidirectional control reorders how the rest of the line renders, so the text a reviewer reads is not the text that runs
src/auth.js:2:6  [high] confusable U+0430 (resembles U+0061)  a Cyrillic character in a word that is not Cyrillic, and it reduces to the codepoint under `resembles`: the two are indistinguishable on screen
5 findings in 1 file

Exit codes

  • 0: clean.
  • 1: findings, or with --fail-on bidi a bidirectional control alone.
  • 2: the question was malformed, a directory could not be walked, or --strict and a file was refused.

For agents

unicode-le mcp serves the Model Context Protocol on stdio with two tools: detect_unicode_risks for a document's text and unicode_le_scan for files and directories. Hosts that want the document tool alone can install unicode-le-mcp.

unicode-le --help lists every option.

MIT licensed. Part of letools.