1.0.0 • Published 6 years ago
ali-oss-watch v1.0.0
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-watchOr install with yarn
$ yarn add ali-oss-watchimport 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
1.0.0
6 years ago