Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 430 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 430 Bytes

Mojibak

Utility to recover garbled (mojibaked) text. Inspired by Ruby's 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"))'