An open API service indexing awesome lists of open source software.

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

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"))'