Skip to content

Utility functions for storing and retrieving data from different sources (i.e. GCS, AWS S3, HDD, RAM, etc)

Notifications You must be signed in to change notification settings

CyrusBiotechnology/cyrus-storage

Repository files navigation

Cyrus Storage

Utility functions to transfer data to a persistant storage device.

GCS

gcs = storage.init('gcs', {project:'cyrusmolcloud'})

gcs.store('Hello World!', 'storage-test-adasdaf3', console.log)
//storage-test-adasdaf3/1ca4ac31-2b91-4934-97bb-82ee2a5e25da.txt

gcs.retrieve('storage-test-adasdaf3/1ca4ac31-2b91-4934-97bb-82ee2a5e25da.txt', console.log)
//Hello World!

Local storage

var local = storage.init('local')

local.store('Hello World', console.log)
//./local_storage/8368d330-46d3-4374-a107-485e26902fa2

local.retrieve('./local_storage/8368d330-46d3-4374-a107-485e26902fa2', console.log)
//Hello World

About

Utility functions for storing and retrieving data from different sources (i.e. GCS, AWS S3, HDD, RAM, etc)

Resources

Stars

Watchers

Forks

Packages

No packages published