filesrocket-cloudinary
v0.0.4
Published
Filesrocket service that manage the files of the Cloudinary
Downloads
24
Maintainers
Readme
filesrocket-cloudinary
Filesrocket service to manage your files with Cloudinary
Install
npm i filesrocket-cloudinary
Usage
To use the service add the following content
import { Filesrocket } from "filesrocket";
import { CloudinaryFileService } from "filesrocket-cloudinary";
// Initialize filesrocket
const filesrocket = new Filesrocket();
// Setting service
const cloudinary = new CloudinaryFileService({
pagination: { default: 15, max: 50 },
cloud_name: "<Your CLOUD NAME>",
api_key: "<Your API KEY>",
api_secret: "<Your API SECRET>"
});
// Register services
filesrocket.register("cloudinary", cloudinary);
// Recovering service
const service = filesrocket.service("cloudinary");
// Recovering controller
const controller = filesrocket.controller("cloudinary");
Note: To use this service, you need to have an account, enter here and follow the steps.