https://github.com/gamikun/just-say-it
Simple JSON response server and no third party dependencies
https://github.com/gamikun/just-say-it
http json-response nodejs request server
Last synced: 20 days ago
JSON representation
Simple JSON response server and no third party dependencies
- Host: GitHub
- URL: https://github.com/gamikun/just-say-it
- Owner: gamikun
- License: mit
- Created: 2018-04-26T08:43:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-17T10:02:38.000Z (about 8 years ago)
- Last Synced: 2025-07-27T03:54:17.223Z (10 months ago)
- Topics: http, json-response, nodejs, request, server
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
When you need a server that only needs an endpoint and returns a single object.
## Example
const justsayit = require('justsayit')
justsayit(1522, req => {
return {'hello', 'world'}
})
That's it. 1522 is the port, and the {'hello': 'world'} the JSON response.
You can also return a `string` in the callback instead of an object.