@cloudinary-util/url-loader
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published
Cloudinary

npm GitHub

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'
    }
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudinary-util/url-loader

Weekly Downloads

25,305

Version

6.0.0

License

MIT

Unpacked Size

561 kB

Total Files

159

Last publish

Collaborators

  • colbyfayock