2.12.0 • Published 11 months ago

fedorsay v2.12.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

npm.io

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
2.11.0

11 months ago

2.12.0

11 months ago

2.10.0

11 months ago

2.9.0

11 months ago

2.7.0

11 months ago

2.6.0

11 months ago

2.5.0

11 months ago

2.4.0

11 months ago

2.3.0

11 months ago

2.2.0

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.1.0

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago