alioss-pocessing-utils
v0.2.1
Published
Easy to generate the processing API of AliOSS.
Downloads
3
Readme
alioss-pocessing-utils-js
Easy to generate the processing API of AliOSS.
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
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