git ssb

0+

cel-desktop / ssb-pkg



Tree: efcf9fd06b02fa9bcd28681b4c777224e19702bb

Files: efcf9fd06b02fa9bcd28681b4c777224e19702bb / test / test-79-npm / s3 / s3.js

421 bytesRaw
1'use strict';
2
3var s3 = require('s3');
4
5var client = s3.createClient({
6 s3Options: {
7 accessKeyId: 'ABRACADABRABRACADABR',
8 secretAccessKey: 'TdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTdTd'
9 }
10});
11
12var ee = client.listObjects({
13 s3Params: {
14 Bucket: 'enclosejs'
15 }
16});
17
18ee.on('error', function (error) {
19 if (error) {
20 if (error.message.indexOf('does not exist') >= 0) {
21 console.log('ok');
22 }
23 }
24});
25

Built with git-ssb-web