ali-oss-watch

1.0.0 • Public • Published

ali-oss-watch

Alibaba Cloud OSS file change monitoring, through polling to query the addition and deletion of Alibaba Cloud OSS ​​files

Install

Install with ali-oss-watch

$ npm install ali-oss-watch

Or install with yarn

$ yarn add ali-oss-watch
import AOW from 'ali-oss-watch.js';

Or umd builds are also available

<script src="path/to/ali-oss-watch.js"></script>

Will expose the global variable to window.AOW.

Usage

const aow = new AOW({
    region: '',
    accessKeyId: '',
    accessKeySecret: '',
    bucket: '',
    prefix: '',
    delimiter: '',
    'max-keys': 100,
    interval: 60 * 1000,
});

aow.on('diff', (diff) => console.log(diff));

License

MIT © Harvey Zack

Readme

Keywords

Package Sidebar

Install

npm i ali-oss-watch

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

477 kB

Total Files

14

Last publish

Collaborators

  • zhw2590582