-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
37 lines (34 loc) · 1.27 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const get = require('./methods/get');
const upload = require('./methods/upload');
const getFileFromHash = require('./methods/getFileFromHash');
const listBuckets = require('./methods/listBuckets');
const listFiles = require('./methods/listFiles');
const deleteFile = require('./methods/deleteFile');
const streamUpload = require('./methods/streamUpload');
//
// *****************************************************
// upload: Upload a file to Fleek Storage
// *****************************************************
// get: Get a file or related metadata from Fleek Storage
// *****************************************************
// getFileFromHash: Downloads a file from IPFS through Fleek's gateway
// *****************************************************
// listBuckets: Lists the user's buckets
// *****************************************************
// listFiles: Lists files in a bucket
// *****************************************************
// deleteFile: Deletes a file from a bucket
// *****************************************************
// streamUpload: Uploads from a stream
// *****************************************************
//
const fleekJs = {
upload,
get,
getFileFromHash,
listBuckets,
listFiles,
deleteFile,
streamUpload,
};
module.exports = fleekJs;