# homoglyph

> Replace ascii chars with their same looking utf8 chars.

Latest version **1.1.2** (published 2015-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install homoglyph
pnpm add homoglyph
yarn add homoglyph
bun add homoglyph
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2015-11-13 |
| First published | 2015-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexander Plavinski |
| Maintainers | cilice |
| Keywords | mimic, homoglyph, utf8, ascii, syntax, error |

## Links

- npm: https://www.npmjs.com/package/homoglyph
- Repository: https://github.com/cilice/homoglyph
- Homepage: https://github.com/cilice/homoglyph#readme
- Issues: https://github.com/cilice/homoglyph/issues
- npm.io page: https://npm.io/package/homoglyph

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2015-11-13
- 1.1.1 — 2015-10-29
- 1.1.0 — 2015-10-29
- 1.0.2 — 2015-10-25
- 1.0.1 — 2015-10-23
- 1.0.0 — 2015-10-23

## README

# homoglyph [![Build Status](https://travis-ci.org/cilice/homoglyph.svg?branch=master)](https://travis-ci.org/cilice/homoglyph)

A port of [mimic](https://github.com/reinderien/mimic) to node.js.

It's inspired by this terrible idea floating around:

> MT: Replace a semicolon (;) with a greek question mark (;) in your friend&#39;s C# code and watch them pull their hair out over the syntax error

>  [Peter Ritchie (@peterritchie) November 16, 2014](https://twitter.com/peterritchie/status/534011965132120064)


## Install

```sh
$ npm install --save homoglyph
```

##Usage

```javascript
var homoglyph = require('homoglyph');

homoglyph.encode('text', opts);
homoglyph.decode('text');

homoglyph.dict
// A ES6 Map Object with normal characters as keys and an array of similar looking utf8 characters as value.
homoglyph.reverse
// A ES6 Map Object with similar looking characters as keys and their usual letters as values
```

---
_Source: https://npm.io/package/homoglyph · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
