https://github.com/dnmfarrell/mojibak
Node module to recover mojibaked text
https://github.com/dnmfarrell/mojibak
Last synced: 6 months ago
JSON representation
Node module to recover mojibaked text
- Host: GitHub
- URL: https://github.com/dnmfarrell/mojibak
- Owner: dnmfarrell
- License: mit
- Created: 2024-09-18T20:15:39.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-20T18:47:59.000Z (almost 2 years ago)
- Last Synced: 2025-10-20T08:54:03.588Z (9 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Mojibak
=======
Utility to recover garbled (mojibaked) text. Inspired by Ruby's [mojibake](https://github.com/dekellum/mojibake).
Installation
------------
npm install mojibak
Usage
-----
import {recover} from "mojibak";
const sandwich = recover("â\u0080\u008BBigMac");
One liner
NODE_PATH=$(npm root -g) node -e \
'const {recover} = require("mojibak");console.log(recover("Itâ\u0080\u0099s cool"))'