
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@cloudinary/html
Advanced tools
This project contains SDKs designed to work with Cloudinary url-gen.
These SDKs render CloudinaryImage or CloudinaryVideo objects into the DOM.
The React SDK used to render an image & video component. NPM | {@link ReactSDK|Reference}
The Angular SDK used to render an image & video component. NPM | {@link AngularSDK|Reference}
Each SDK also contains advanced features in the form of plugins, which extend the native HTMLImage and HTMLVideo elements.
To build and link project:
To get started, install the npm client package of your choice along with our base package. For example, to use Cloudinary in a React environment, the following packages should be installed:
npm i @cloudinary/react @cloudinary/url-gen
Note: To use Angular install @cloudinary/ng.
The following is a simple example using React. For more information on React and other frameworks, navigate to the specific reference using the Packages menu.
// Import the Cloudinary class, and the plugins you want to use.
// In this case, we import a Cloudinary image type, accessibility and responsive.
import React, { Component } from 'react'
import {Cloudinary} from "@cloudinary/url-gen";
import { AdvancedImage, accessibility, responsive } from '@cloudinary/react';
// Once per project/app - configure your instance.
// See the documentation in @cloudinary/url-gen for more information.
const myCld = new Cloudinary({ cloudName: 'demo'});
// Render your component.
const App = () => {
// Create your image.
// This creates a new image object:
let img = myCld().image('sample');
return (
<div>
<AdvancedImage cldImg={img} plugins={[responsive(), accessibility()]}/>
</div>
)
};
<AdvancedImage plugins={[lazyload(),responsive(), accessibility(), placeholder()]}/>
You can omit any plugin, but the order from above should remain.
FAQs
An HTML wrapper for Cloudinary
The npm package @cloudinary/html receives a total of 40,414 weekly downloads. As such, @cloudinary/html popularity was classified as popular.
We found that @cloudinary/html demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.