You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cloudinary URL-Gen SDK allows you to quickly and easily integrate your application with Cloudinary.
6
+
Effortlessly optimize and transform your cloud's assets.
2
7
3
-
## About this project
8
+
This SDK can also be used with [popular frontend frameworks](https://cloudinary.com/documentation/sdks/js/frontend-frameworks/index.html).
4
9
5
-
This project enables you to create Cloudinary URLs for your images and videos.
6
-
Using this SDK, you can apply advanced transformations to your images and videos.
10
+
### Additional documentation
11
+
This Readme provides basic installation and usage information.
12
+
For the complete documentation, see the [URL-Gen SDK Guide](https://cloudinary.com/documentation/javascript_integration) and the [URL-Gen Reference](https://cloudinary.com/documentation/sdks/js/url-gen/index.html).
13
+
14
+
15
+
## Table of Contents
16
+
-[Key Features](#key-features)
17
+
-[Version Support](#Version-Support)
18
+
-[Installation](#installation)
19
+
-[Usage](#usage)
20
+
-[Setup](#Setup)
21
+
-[Transform and Optimize Assets](#Transform-and-Optimize-Assets)
22
+
-[Generate Image and Video URLs](#Generate-Image-and-Video-URLs)
23
+
-[Transpilation](#Transpilation)
24
+
-[Testing with Jest](#Testing-with-jest)
25
+
-[Contributions](#Contributions)
26
+
-[Get Help](#Get-Help)
27
+
-[Additional Resources](#Additional-Resources)
28
+
29
+
## Key Features
30
+
-[Transform image](https://cloudinary.com/documentation/javascript_image_transformations) assets (links to docs).
31
+
-[Transform video](https://cloudinary.com/documentation/javascript_video_transformations) assets (links to docs).
32
+
33
+
34
+
## Version Support
35
+
36
+
### Note!
37
+
This SDK is cross-platform, but only the node versions are worth mentioning
- Use cld.image() to generate image URLs and transformations
92
+
- Use cld.video() to generate video URLs and transformations
57
93
94
+
### File upload
95
+
This SDK does not provide file upload functionality, however there are [several methods of uploading from the client side](https://cloudinary.com/documentation/javascript_image_and_video_upload).
58
96
59
97
### Transpilation
60
98
@cloudinary/url-gen is shipped as untranspiled ES6 code.
61
-
@cloudinary/url-gen is optimized around bundle size, as such we do not transpile our distributed modules,
99
+
@cloudinary/url-gen is optimized around bundle size, as such we do not transpile our distributed modules,
62
100
we leave the decision of what browsers to support, and what transpilations to apply, to you, the user.
63
101
64
102
### Testing with Jest
65
-
66
103
As mentioned above, we're shipping @cloudinary/url-gen with ES6 code, as this provides great tree-shaking potential.
67
104
it also requires a few adjustments when testing.
68
105
@@ -76,11 +113,11 @@ In jest.config, you'll need to add these lines to allow babel to transpile our c
76
113
}
77
114
```
78
115
Make sure to install babel-jest:
79
-
`npm install babel-jest`
116
+
`npm install babel-jest`
80
117
81
118
You'll also need to ensure you have a babel.config.js file (and not a .babelrc), and that
82
119
it's configured properly to transpile code,
83
-
120
+
84
121
*As an example*:
85
122
```js
86
123
module.exports= {
@@ -89,3 +126,46 @@ module.exports = {
89
126
]
90
127
};
91
128
```
129
+
130
+
## Contributions
131
+
- Clone this repository
132
+
- Create a fork
133
+
- Make your changes
134
+
- Run tests locally `npm run test`
135
+
- Build project locally `npm run build`
136
+
- Push your changes
137
+
- Await a review from the maintainers
138
+
139
+
140
+
## Get Help
141
+
If you run into an issue or have a question, you can either:
142
+
-[Open a Github issue](https://github.com/cloudinary/js-url-gen/issues) (for issues related to the SDK)
143
+
-[Open a support ticket](https://cloudinary.com/contact) (for issues related to your account)
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.
-[Use with a Frontend Framework](https://cloudinary.com/documentation/sdks/js/frontend-frameworks/index.html)
159
+
-[Cloudinary Transformation and REST API References](https://cloudinary.com/documentation/cloudinary_references): Comprehensive references, including syntax and examples for all SDKs.
160
+
-[MediaJams.dev](https://mediajams.dev/): Bite-size use-case tutorials written by and for Cloudinary Developers
161
+
-[DevJams](https://www.youtube.com/playlist?list=PL8dVGjLA2oMr09amgERARsZyrOz_sPvqw): Cloudinary developer podcasts on YouTube.
-[Code Explorers and Feature Demos](https://cloudinary.com/documentation/code_explorers_demos_index): A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
164
+
-[Cloudinary Roadmap](https://cloudinary.com/roadmap): Your chance to follow, vote, or suggest what Cloudinary should develop next.
165
+
-[Cloudinary Facebook Community](https://www.facebook.com/groups/CloudinaryCommunity): Learn from and offer help to other Cloudinary developers.
0 commit comments