
Product
Introducing Socket MCP for Claude Desktop
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
@getable/json-image-to-cloudinary
Advanced tools
Takes a json array and field names. Replaces the value of those field names with a cloudinary url.
Takes a json array and field names. Replaces the value of those field names with a cloudinary url.
Table of Contents generated with DocToc
npm i -S @getable/json-image-to-cloudinary
CLOUDINARY_URL=cloudinary://<your url here> && json-image-to-cloudinary data.json -f image
import from '@getable/json-image-to-cloudinary'
jsonImageToCloudinary(docs, options, callback)
show help
-f, --field | field <String>
RequiredField to replace with a cloudinary url
--overwrite | overwriteImages <Boolean>
Overwrite data on cloudinary, use this if your urls changed and you're running the script for a second time
-i, --id | id <String>
Generate a cloudinary id from this string. Access keys in the object with ${}
. e.g. --id="${category}/${id}"'
-w, --widths | widths <Array>
CLI: A comma separated list of widths to eagerly compute. Programmatic: An array of integers.
--widths-key | widthsKey <String>
Defaults to field + "s"
, but you can override here
--width-names | widthNames <Object>
CLI: Name a width for output as an object with width urls
e.g. --field=image --widths=50,100 --width-names='small:50,large:100}'
Programmatic: An object of width names that map to widths e.g. `{widths: [50, 100], widthNames: {small: 50, large: 100}}
outputs:
{
"image": "https://cloudinaryurl",
"images": {
"small": "https://cloudinaryurl-at-50",
"large": "https://cloudinaryurl-at-100"
}
}
Tests are in tape.
npm test
will run the testsnpm run tdd
will run the tests on every file change.To publish, run npm run release -- [{patch,minor,major}]
NOTE: you might need to sudo ln -s /usr/local/bin/node /usr/bin/node
to ensure node is in your path for the git hooks to work
npm i -g npm
git push --follow-tags
will work. brew install git
Artistic 2.0 © Joey Baker
FAQs
Takes a json array and field names. Replaces the value of those field names with a cloudinary url.
The npm package @getable/json-image-to-cloudinary receives a total of 0 weekly downloads. As such, @getable/json-image-to-cloudinary popularity was classified as not popular.
We found that @getable/json-image-to-cloudinary demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.