This is an example Node API using express
, body-parser
, and to-zalgo
.
You can run this example by cloning the repo and running npm start
node-text-api
has two endpoints:
/magic-8-ball
- Returns
{"prediction": "<random_prediction>"}
, where<random_prediction>
is randomly chosen from the standard Magic 8-Ball replies
- Returns
/to-zalgo
- Input: `{"text": "your text here"}
- Returns:
{"code": 200, "original": "your text here", "zalgo": "zalgo-ified text"}