{"name":"cloudinary","version":"2.6.1","author":{"name":"Cloudinary","email":"info@cloudinary.com"},"license":"MIT","_id":"cloudinary@2.6.1","maintainers":[{"name":"cloudinary","email":"npm@cloudinary.com"}],"homepage":"https://cloudinary.com","bugs":{"url":"https://github.com/cloudinary/cloudinary_npm/issues"},"dist":{"shasum":"19859befb47ca88d356cd9cad5185067bf34f004","tarball":"http://registry-npm.ywwl.com/cloudinary/download/cloudinary-2.6.1.tgz","fileCount":51,"integrity":"sha512-Dt7o3p4VzxYoTi+EqWkVQmGy6WiXIyMcG5Gbr9kPR/EQ+jZa+3FFzlDKfDx1uDsaB1aTR1gYeO6wZqrgLFaByQ==","signatures":[{"sig":"MEUCIQDLDaLcYdEhS2PjQAUMq5voXOxhS76MKTl6pAdl5iAmBgIgE4nWFp5BytEusJSZpYmgfHvRYeOa/JUPfa6oCPiWJf4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":296096,"size":68412,"noattachment":false,"key":"/cloudinary/-/cloudinary-2.6.1.tgz"},"main":"cloudinary.js","types":"types","engines":{"node":">=9"},"gitHead":"c7f784df4c5e7c0a0245db172e39ac65594177ff","scripts":{"docs":"tools/scripts/docs.sh","lint":"tools/scripts/lint.sh","test":"tools/scripts/test.sh","dtslint":"tools/scripts/ditslint.sh","coverage":"tools/scripts/test.es6.sh --coverage","test-es6":"tools/scripts/test.es6.sh","test:unit":"tools/scripts/test.es6.unit.sh","test-with-temp-cloud":"tools/scripts/tests-with-temp-cloud.sh"},"_npmUser":{"name":"cloudinary","email":"npm@cloudinary.com"},"repository":{"url":"git+https://github.com/cloudinary/cloudinary_npm.git","type":"git"},"_npmVersion":"6.14.16","description":"Cloudinary NPM for node.js integration","directories":{},"_nodeVersion":"14.19.0","dependencies":{"q":"^1.5.1","lodash":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","glob":"^7.1.6","jsdoc":"^4.0.4","jsdom":"^9.12.0","mocha":"^6.2.3","sinon":"^6.1.4","dotenv":"4.x","eslint":"^6.8.0","rimraf":"^3.0.0","dtslint":"^0.9.1","date-fns":"^2.16.1","expect.js":"0.3.x","typescript":"^3.7.5","@types/node":"^13.5.0","webpack-cli":"^3.2.1","@types/mocha":"^7.0.2","jsdom-global":"2.1.1","@types/expect.js":"^0.3.29","eslint-plugin-import":"^2.20.2","eslint-config-airbnb-base":"^14.2.1"},"_npmOperationalInternal":{"tmp":"tmp/cloudinary_2.6.1_1746457292197_0.8678529682902196","host":"s3://npm-registry-packages-npm-production"},"readme":"# Cloudinary Node.js SDK\n\nUpload, transform, optimize, and manage images and videos with Cloudinary from Node.js — the `cloudinary` package on npm.\n\n[![CI](https://github.com/cloudinary/cloudinary_npm/actions/workflows/ci.yml/badge.svg)](https://github.com/cloudinary/cloudinary_npm/actions/workflows/ci.yml)\n[![npm](https://img.shields.io/npm/v/cloudinary.svg)](https://www.npmjs.com/package/cloudinary)\n[![License](https://img.shields.io/npm/l/cloudinary.svg)](LICENSE)\n\n## Install\n\n```bash\nnpm install cloudinary\n```\n\n## Quick start\n\nSet your API environment variable (Console > Settings > API Keys):\n\n```bash\nexport CLOUDINARY_URL=cloudinary://<api_key>:<api_secret>@<cloud_name>\n```\n\nUpload an image and get an optimized delivery URL:\n\n```js\nconst cloudinary = require('cloudinary').v2;\n\nasync function main() {\n  // Upload a remote image (a local file path works the same way)\n  const result = await cloudinary.uploader.upload(\n    'https://res.cloudinary.com/demo/image/upload/sample.jpg',\n    { public_id: 'quickstart-sample' }\n  );\n  console.log(`Uploaded: ${result.public_id}`);\n\n  // Build a 400x400 auto-cropped URL with automatic format and quality\n  const url = cloudinary.url(result.public_id, {\n    width: 400,\n    height: 400,\n    crop: 'fill',\n    gravity: 'auto',\n    fetch_format: 'auto',\n    quality: 'auto',\n    secure: true\n  });\n  console.log(`Optimized URL: ${url}`);\n}\n\nmain().catch((error) => {\n  console.error(`Quick start failed: ${error.message}`);\n  console.error('Check that CLOUDINARY_URL is set (Console > Settings > API Keys).');\n  process.exitCode = 1;\n});\n```\n\nSave as `quickstart.js` and run `node quickstart.js`. [Create a free account](https://cloudinary.com/users/register_free) if you don't have one — or run `npx @cloudinary/cloud` to [provision one without signing up](docs/get-credentials.md).\n\n## Common tasks\n\n- [Get Cloudinary credentials](docs/get-credentials.md)\n- [Upload an image](docs/upload-image.md)\n- [Upload a large video](docs/upload-large-video.md)\n- [Sign a browser upload](docs/sign-browser-upload.md)\n- [Transform and deliver an image](docs/transform-and-deliver-image.md)\n- [Transform and deliver a video](docs/transform-and-deliver-video.md)\n- [Search and manage assets](docs/search-and-manage-assets.md)\n- [Moderate an upload](docs/moderate-upload.md)\n- [Use structured metadata](docs/use-structured-metadata.md)\n- [Troubleshoot errors](docs/troubleshoot-errors.md)\n\nRunnable versions live in [`examples/`](examples/) — each is a complete file you can run directly.\n\n## When to use this SDK\n\nUse this package in **Node.js server-side code**: uploads, signed operations, asset\nadministration, search, moderation, and delivery URL generation.\n\nFor other jobs, better-fitting tools exist:\n\n- Browser or frontend framework rendering: [@cloudinary/url-gen](https://www.npmjs.com/package/@cloudinary/url-gen) and the [frontend SDKs](https://cloudinary.com/documentation/frontend_sdks) ([md](https://cloudinary.com/documentation/frontend_sdks.md)).\n- Complete in-browser upload UI: [Upload Widget](https://cloudinary.com/documentation/upload_widget) ([md](https://cloudinary.com/documentation/upload_widget.md)).\n- Text-to-image generation and image-to-video: [platform APIs](https://cloudinary.com/documentation/image_generation_addon) ([md](https://cloudinary.com/documentation/image_generation_addon.md)), not wrapped by this package.\n- Multi-step media workflow automation: [MediaFlows](https://cloudinary.com/documentation/mediaflows_user_guide) ([md](https://cloudinary.com/documentation/mediaflows_user_guide.md)).\n- Interactive agent-driven asset operations: [Cloudinary MCP servers and Skills](https://cloudinary.com/documentation/cloudinary_llm_mcp) ([md](https://cloudinary.com/documentation/cloudinary_llm_mcp.md)).\n\nThe full capability map — plus the Skills, MCP servers, and CLI worth setting up first —\nis in [docs/platform-capabilities.md](docs/platform-capabilities.md).\n\n## Status and compatibility\n\nStable, actively maintained. See [CHANGELOG.md](CHANGELOG.md).\n\n| SDK version | Node.js |\n|-------------|---------|\n| 2.x         | 9 and later |\n| 1.x         | 6 and later (no longer maintained) |\n\n## Documentation\n\n- [Bundled task docs](docs/README.md) — ship inside the package, version-matched.\n- [Node SDK guide](https://cloudinary.com/documentation/node_integration) — the full documentation ([md](https://cloudinary.com/documentation/node_integration.md)).\n\nDocumentation links in this README point at the browsable HTML page, with an `(md)`\ncompanion link that returns the same page as raw Markdown. Inside `docs/` and `examples/`\nthe links are Markdown-only, since those files are written to be read by coding agents.\nEither form works for any page: add `.md` for Markdown, drop it for HTML.\n\n## For AI coding agents\n\n- Contributing to this repo: read [AGENTS.md](AGENTS.md).\n- Using the installed package: the docs in `node_modules/cloudinary/docs/` match your\n  installed version and are the source of truth; start with\n  [platform-capabilities](docs/platform-capabilities.md) before assuming a feature exists.\n\n## Support\n\n- SDK bugs and feature requests: [GitHub issues](https://github.com/cloudinary/cloudinary_npm/issues)\n- Account and platform questions: [Cloudinary support](https://support.cloudinary.com)\n\n## Security\n\nSee [SECURITY.md](SECURITY.md) for private vulnerability reporting. Keep your\n`api_secret` in server-side code; for client uploads, use the server-signed pattern in\n[Sign a browser upload](docs/sign-browser-upload.md).\n\n## License\n\nReleased under the MIT license — see [LICENSE](LICENSE). Copyright (c) Cloudinary Ltd.\n","publish_time":1746457292414,"_cnpm_publish_time":1746457292414,"dist-tags":{"latest":"2.11.0"}}