This is a set of helpers for NodeJS. They're written for quick reuse rather than robust functions or efficiency. For instance, the database functions will create a new database connection every time. This is not efficient, but it makes making the function call simple.
My use is primarily in quicker one-off scripts that sometimes morph into something long-lasting...
Get blob from Azure example, downloads bar.jpg from foo container to baz.jpg
constAzureStorage=require('./src/azure.js')letstorageAccountName='devstoreaccount1'letstorageAccountKey='Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw=='letoptions={cloudName: 'Azurite'}letazure=newAzureStorage(storageAccountName,storageAccountKey,options)letcontainerName='foo'letblob='bar.jpg'letfile='baz.jpg'awaitazure.downloadBlobToFile(containerName,blob,file)