fedorsay

2.12.0 • Public • Published

Examples

         o      o 
          \    /
         ---------
       (| 0     0 |)
        |    o    |
         ---------
            | |  /\_/\
            | | ( o.o )     
            | |  > ^ <      
       -------------                  
      /|       RN  |\      \/
    /| |           | |\    /
   /  \|           |/  \  /
  /    |           |    \/ 
 |     |           |
 |     -------------                                      
 |       |  | |  |   
 /\      |  | |  |   
         |  | |  |   
         |  | |  |
          ||   ||
          ||   ||
        __||   ||__
       /___/   \___\

      fedor - robot

Install

npm install fedorsay

Usage

fedorsay some text

API

POST /api/say

curl -X POST http://localhost:3000/api/say -H "Content-Type: application/json" -d '{"message": "Hi!"}'

answer

{
    "art": "Hello, I'm robot fedor and I'm here."
}

----------------------------

GET /api/greet

curl http://localhost:3000/api/greet

answer

{
    "greeting": "Hello from robot fedor API!"
}

When using the API, don't forget to start the server with npm start.

Web Interface

The web interface allows users to send POST 
and GET requests to generate ASCII art messages.

Running the Web Server

To run the web server, follow these steps:

1. node webfedorserver.js
2. open - http://localhost:3000

Package Sidebar

Install

npm i fedorsay

Weekly Downloads

2

Version

2.12.0

License

ISC

Unpacked Size

8.22 kB

Total Files

7

Last publish

Collaborators

  • uchitelnamik