@cloudinary-util/url-loader
v6.0.0
Published
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/62209650/196528621-b68e9e10-7e55-4c7d-9177-904cadbb4296.png" align="center" height=50> <source media="(prefers-color-scheme: light)" srcset="https
Downloads
108,672
Readme
Cloudinary URL Loader
A function to construct a Cloudinary URL based on a set of options.
The loader works by loading a list of "plugins" which provide option-based configuration for features like optimization, cropping, and background removal.
Getting Started
This is a community library supported by the Cloudinary Developer Experience team.
🚀 Getting Started
The minimum node version officially supported is version 18.
- Install Cloudinary URL Loader:
npm install @cloudinary-util/url-loader
- Import the dependency:
import { constructCloudinaryUrl } from '@cloudinary-util/url-loader';
- Create a Cloudinary URL:
const url = constructCloudinaryUrl({
options: {
src: 'my-public-id',
width: 800,
height: 600
},
config: {
cloud: {
cloudName: 'my-cloud'
}
}
});