MCPcopy Index your code
hub / github.com/cloudinary/cloudinary_npm

github.com/cloudinary/cloudinary_npm @2.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.10.0 ↗ · + Follow
323 symbols 660 edges 128 files 95 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cloudinary Node SDK

About

The Cloudinary Node SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize, transform, upload and manage your cloud's assets.

Note

This Readme provides basic installation and usage information. For the complete documentation, see the Node SDK Guide.

Table of Contents

Key Features

Version Support

SDK Version Node version
1.x.x Node@6 & up
2.x.x Node@9 & up

Installation

npm install cloudinary

Usage

Setup

// Require the Cloudinary library
const cloudinary = require('cloudinary').v2

Transform and Optimize Assets

cloudinary.url("sample.jpg", {width: 100, height: 150, crop: "fill", fetch_format: "auto"})

Upload

cloudinary.v2.uploader.upload("/home/my_image.jpg", {upload_preset: "my_preset"}, (error, result)=>{
  console.log(result, error);
});

Large/Chunked Upload

   cloudinary.v2.uploader.upload_large(LARGE_RAW_FILE, {
          chunk_size: 7000000
        }, (error, result) => {console.log(error)});

Security options

Contributions

  • Ensure tests run locally (add test command)
  • Open a PR and ensure tests pass

Get Help

If you run into an issue or have a question, you can either: - Issues related to the SDK: Open a Github issue. - Issues related to your account: Open a support ticket

About Cloudinary

Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.

Additional Resources

Licence

Released under the MIT license.

Extension points exported contracts — how you extend this code

CommonTransformationOptions (Interface)
(no doc)
types/index.d.ts
ImageTransformationOptions (Interface)
(no doc)
types/index.d.ts
VideoTransformationOptions (Interface)
(no doc)
types/index.d.ts
TextStyleOptions (Interface)
(no doc)
types/index.d.ts
ConfigOptions (Interface)
(no doc)
types/index.d.ts

Core symbols most depended-on inside this repo

test_cloudinary_url
called by 109
test/unit/url/video_url_spec.js
call_api
called by 87
lib/uploader.js
consumeOption
called by 51
lib/utils/parsing/consumeOption.js
pickOnlyExistingValues
called by 40
lib/utils/index.js
toString
called by 24
lib/preloaded_file.js
call_account_api
called by 23
lib/api_client/call_account_api.js
expression
called by 19
lib/v2/search.js
with_field
called by 18
lib/v2/search.js

Shape

Function 201
Interface 50
Method 50
Class 22

Languages

TypeScript100%

Modules by API surface

lib/utils/index.js76 symbols
types/index.d.ts54 symbols
lib/provisioning/account.js23 symbols
lib/v2/search.js15 symbols
lib/uploader.js14 symbols
lib/cache/KeyValueCacheAdapter.js10 symbols
lib/cache.js10 symbols
lib/cache/FileKeyValueStorage.js9 symbols
lib/utils/qPolyfill.js8 symbols
lib/preloaded_file.js8 symbols
test/unit/cache/DummyCacheStorage.js7 symbols
lib/api.js7 symbols

For agents

$ claude mcp add cloudinary_npm \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact