git ssb

0+

cel-desktop / ssb-pkg



Tree: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44

Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / 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