osde8info / node-text-api

A Node API using express, body-parser, and to-zalgo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-text-api

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

Endpoints

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
  • /to-zalgo
    • Input: `{"text": "your text here"}
    • Returns: {"code": 200, "original": "your text here", "zalgo": "zalgo-ified text"}

About

A Node API using express, body-parser, and to-zalgo


Languages

Language:JavaScript 100.0%