Releases: daneedev/random-img-api
Releases · daneedev/random-img-api
v1.1.0
v1.0.2
What's new?
- Website link changed to https://randomimgapi.js.org
v1.0.1
v1.0.0
❔ About
With this package you can create API that will randomly generates images.
🏁 Installation
npm i randomimgapi
# Dev Version
npm i randomimgapi@dev
📜 Example
const { API } = require('randomimgapi')
API({
imgFolder: 'img', // folder where you will store images
port: 4000, // the port on which the api will run
apiURL: '' , // leave it blank if you want use it on main page (https://yourdomain.com/)
apiDomain: 'localhost:4000' // your domain on which will api work (if you want to use localhost do it with port)
})