1.0.0 • Published 4 years ago

ali-oss-watch v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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