{"id":16667266,"url":"https://github.com/peterpme/cloudinary-microurl","last_synced_at":"2025-06-27T17:33:11.065Z","repository":{"id":48000855,"uuid":"57947565","full_name":"peterpme/cloudinary-microurl","owner":"peterpme","description":"A tiny (346B), 0 dependency, fully-tested Cloudinary URL generator for JS","archived":false,"fork":false,"pushed_at":"2022-12-07T09:45:35.000Z","size":411,"stargazers_count":14,"open_issues_count":18,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-21T18:14:52.221Z","etag":null,"topics":["cloudinary","cloudinary-url","javascript"],"latest_commit_sha":null,"homepage":"https://npm.im/cloudinary-microurl","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterpme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-03T06:45:37.000Z","updated_at":"2023-03-14T23:09:29.000Z","dependencies_parsed_at":"2023-01-24T16:31:48.538Z","dependency_job_id":null,"html_url":"https://github.com/peterpme/cloudinary-microurl","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/peterpme/cloudinary-microurl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterpme%2Fcloudinary-microurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterpme%2Fcloudinary-microurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterpme%2Fcloudinary-microurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterpme%2Fcloudinary-microurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterpme","download_url":"https://codeload.github.com/peterpme/cloudinary-microurl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterpme%2Fcloudinary-microurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261583734,"owners_count":23180660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudinary","cloudinary-url","javascript"],"created_at":"2024-10-12T11:13:40.433Z","updated_at":"2025-06-27T17:33:11.025Z","avatar_url":"https://github.com/peterpme.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/0HShUQD.png\" width=\"700\" alt=\"Cloudinary MicroURL\"\u003e\n\u003c/p\u003e\n\n# 🗜 Cloudinary Micro URL[![npm](https://img.shields.io/npm/v/cloudinary-microurl.svg)](https://npm.im/cloudinary-microurl) [![travis](https://travis-ci.org/peterpme/cloudinary-microurl.svg?branch=master)](https://travis-ci.org/peterpme/cloudinary-microurl)\n\nA tiny (346B), 0 dependency, fully-tested library to generate Cloudinary URLs from an options object.\n\nThe official Cloudinary js library is ~600kb. This saves you **1700%**. If this were a crypto coin, you wouldn't be here, would you?\n\n### Installation\n\n```sh\nyarn add cloudinary-microurl\n```\n\n```sh\nnpm install cloudinary-microurl\n```\n\n### Usage\n\n```es6\nconst cloudinaryUrl = require('cloudinary-microurl')\nconst url = cloudinaryUrl('twitter.jpg', {\n  secure: true,\n  cloud_name: 'demo',\n  gravity: 'face',\n  flags: 'progressive',\n  quality: 80\n})\n\nconst img = new Image();\nimg.src = url\n```\n\n### Supported Features\n\nThis library supports the following Cloudinary features:\n\n- Fetch format\n- Crop\n- Effect\n- Flags\n- Gravity\n- Height\n- Radius\n- Quality\n- Width\n- Dpr\n\nHere's what they look like in code:\n\n```es6\nfetch_format: \"f\",\ncrop: \"c\",\neffect: \"e\",\nflags: \"fl\",\ngravity: \"g\",\nheight: \"h\",\nradius: \"r\",\nquality: \"q\",\nwidth: \"w\",\ndpr: \"dpr\"\n```\n\n### Fetch mode\n\nSet `{source: 'fetch'}` to activate cloundinary [fetch mode](http://cloudinary.com/documentation/fetch_remote_images#remote_image_fetch_url). You need to enable it in the [security options](https://cloudinary.com/console/settings/security). The image name should be a full URL.\n\n### Contributions\n\nIf there's an effect thats missing, create an Issue or an PR. It's SUPER EASY!\n\n### Thanks to the original author\nThis library was originally created by [josephg](https://github.com/josephg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterpme%2Fcloudinary-microurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterpme%2Fcloudinary-microurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterpme%2Fcloudinary-microurl/lists"}