File Cloud Storage
Install
$ npm install file-cloud-storage
Functions
getContent(bucket, fileName)
returns a promise resolved to the file contentuploadFile(bucket, fileName, filePath)
returns a promiseuploadText(bucket, fileName, content)
returns a promise
Usage
; const bucket = 'files';const fileName = 'test.txt';const endpoint = '<endpoint>'; async { try const getContent uploadFile uploadText = await ; await ; await ; const fileContent = await ; console; catch e console; };