alioss-pocessing-utils
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

alioss-pocessing-utils-js

Easy to generate the processing API of AliOSS.

CircleCI branch Codecov Dependencies DevDependencies

npm package npm downloads

Install

yarn

yarn add alioss-pocessing-utils

npm

npm i alioss-pocessing-utils -S

Usage

There are some example to show how to use alioss-pocessing-utils

ES6

import AliOSSProcessUtil, { ImageResizeMode } from 'alioss-pocessing-utils';
 
const aliOSSImageUrl = `https://image-demo.oss-cn-hangzhou.aliyuncs.com/example.jpg`;
const imgProcesshandler = new AliOSSProcessUtil(aliOSSImageUrl);
 
imgProcesshandler.getAliOSSImageResizeAPI({
  mode: ResizeMode.FIXED
});

CommonJS

const {
  default: AliOSSProcessUtil,
  ImageResizeMode 
= require('alioss-pocessing-utils');
 
const aliOSSImageUrl = `https://image-demo.oss-cn-hangzhou.aliyuncs.com/example.jpg`;
const imgProcesshandler = new AliOSSProcessUtil(aliOSSImageUrl);
 
imgProcesshandler.getAliOSSImageResizeAPI({
  mode: ImageResizeMode.FIXED
});

API

Full API

Contruibution

DefinitelyTyped only works because of contributions by users like you!

Git Message

Follow the Angular git commit message specification

But, you can ignore the scope

ALi OSS DOC

中文文档

English Document

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i alioss-pocessing-utils

    Weekly Downloads

    2

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    51.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • xyy94813