项目作者: mayashavin

项目描述 :
Shorter and lighter APIs for Cloudinary
高级语言: TypeScript
项目地址: git://github.com/mayashavin/cloudinary-api.git
创建时间: 2020-11-13T06:13:46Z
项目社区:https://github.com/mayashavin/cloudinary-api

开源协议:MIT License

下载


Cloudinary tree-shakable API

A set of lighter packages for using Cloudinary

cloudinary-build-url

npm version
npm downloads
Codecov
License

Build URL for images and videos based on configurations.

📖 Documentation

💻 Codebase

✊ Coding coverage status

  1. import { buildUrl } from 'cloudinary-build-url'
  2. const src = buildUrl('example', {
  3. cloud: {
  4. cloudName: 'demo',
  5. },
  6. transformations: {
  7. resize: {
  8. type: 'scale',
  9. width: 500,
  10. height: 500,
  11. aspectRatio: "16:9"
  12. }
  13. }
  14. })
  15. console.log(src)

Installation

To use cloudinary-build-url:

  1. npm i cloudinary-build-url
  2. #OR
  3. yarn add cloudinary-build-url

Use with TypeScript

cloudinary-build-url supports TypeScript. In order to start using the lib with TypeScript, please install @cld-apis/types as devDependencies.

  1. npm i -D @cld-apis/types
  2. #OR
  3. yarn add -D @cld-apis/types

Supporting packages

@cld-apis/utils

Constants for transformations used in Cloudinary APIs, and other helper functionalities.

@cld-apis/types

Defined types used in cloudinary-build-url for TypeScript

Vue-cli plugin - vue-cli-plugin-cloudinary-api

Cloudinary API plugin for Vue-cli created projects

Maintained by Maya Shavin