Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudinary-core

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudinary-core

Cloudinary Client Side JS library. Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more.

  • 2.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
177K
increased by0.07%
Maintainers
1
Weekly downloads
 
Created

What is cloudinary-core?

The cloudinary-core npm package is a JavaScript library that provides a set of tools for managing and transforming media assets using Cloudinary's cloud-based service. It allows developers to easily upload, manipulate, and deliver images and videos in their web applications.

What are cloudinary-core's main functionalities?

Image Upload

This feature allows you to upload images to Cloudinary and generate URLs for accessing them. The code sample demonstrates how to create a Cloudinary instance and generate a URL for an uploaded image.

const cloudinary = require('cloudinary-core');
const cl = new cloudinary.Cloudinary({ cloud_name: 'your_cloud_name', secure: true });
const imageUrl = cl.url('sample.jpg');
console.log(imageUrl);

Image Transformation

This feature allows you to apply various transformations to images, such as resizing, cropping, and applying effects. The code sample demonstrates how to generate a URL for an image with specific transformations applied.

const cloudinary = require('cloudinary-core');
const cl = new cloudinary.Cloudinary({ cloud_name: 'your_cloud_name', secure: true });
const transformedImageUrl = cl.url('sample.jpg', { width: 300, height: 300, crop: 'fill' });
console.log(transformedImageUrl);

Video Transformation

This feature allows you to apply transformations to videos, similar to image transformations. The code sample demonstrates how to generate a URL for a video with specific transformations applied.

const cloudinary = require('cloudinary-core');
const cl = new cloudinary.Cloudinary({ cloud_name: 'your_cloud_name', secure: true });
const transformedVideoUrl = cl.video_url('sample.mp4', { width: 300, height: 300, crop: 'fill' });
console.log(transformedVideoUrl);

Responsive Images

This feature allows you to generate URLs for responsive images that automatically adjust to different screen sizes. The code sample demonstrates how to generate a URL for a responsive image.

const cloudinary = require('cloudinary-core');
const cl = new cloudinary.Cloudinary({ cloud_name: 'your_cloud_name', secure: true });
const responsiveImageUrl = cl.url('sample.jpg', { responsive: true });
console.log(responsiveImageUrl);

Other packages similar to cloudinary-core

FAQs

Package last updated on 13 Feb 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc