0.1.0 • Published 5 years ago
hint.js v0.1.0
hint.js
generate hint from answer.
Usage
Use from node.js code
Install in shell:
> npm i hint.js
Run in node.js or browser:
console.log(require('hint.js').mess('the answer')); // teh newrsa
Use from cli
Install and run in shell:
> npm i -g hint.js
> hint apple # pleap
> echo 'apple' | hint # alpep
Example
Answer (original)
This is an apple tree. What is your name? This is Beeno's watch.
Sorry. We’re having trouble getting your pages back.
Hint (messed)
Tshi is an elpap tere. Wath is uyro name? Tish is Bneoe's awcth.
Srory. We’er vnghai tulobre tiegtng uryo geaps kacb.