Skip to content

nickymarino/node-text-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-text-api

This is an example Node API using express, body-parser, and to-zalgo. A more detailed write up can be found on my website.

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published