0.1.30 • Published 5 years ago

gcsfs v0.1.30

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

GCSFS

GCSFS provides an mz/fs comaptible virtual fs that uses @google-cloud/storage as a backend.

GCSFS supports only a limited subset of the standard fs methods and only supports async promise based access.

Creating a new GCSFS instance

const GCSFS = require('gcsfs')

var gcsfs = new GCSFS({
    bucketName: 'test-bucket',
    keyFile: 'my-key-file.json',
})

Options

PropertyDescription
createBucketif true bucket will be created if does not exist
credentialscredentials object
defaultGzipuploads will be gzip'd if set to true
defaultPublicfiles will be public if set to true
keyFilegoogle cloud key file
projectIdproject id - not needed if in key file or credentials

Methods

createReadStream

createWriteStream

readFile

writeFile

0.1.30

5 years ago

0.1.29

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

7 years ago

0.1.25

7 years ago

0.1.24

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago

0.1.20

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago