1.1.3 • Published 5 years ago
json1api v1.1.3
json1api : the easiest way to create a json api
Installation
In your terminal:
npm i json1api
Example
const jsonapi = require('json1api');
//creating a json object
jsonapi.setJson({
"Item1": {
"name": "apple",
"color": "red"
},
"Item2": {
"name": "peach"
"color": "green"
}
});
//specifying the port to 3000, the default port is 3000, you can also change it
jsonapi.runServer(3000);
Go onto localhost:3000 , and see the result
Current Version
1.1.3
- Made some bug fix
- Decreased the size
- Added keywords
Contributing
I do not have a GitHub repo for this right at this moment, but as I try to grow it, I will create one.
License
Mit