Skip to content
Azure Storage v10 SDK for JavaScript Quickstart
Branch: master
Clone or download
Latest commit 071587c Feb 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Initial commit Sep 12, 2018
.vscode Add sample code Sep 12, 2018
.env.example Add sample code Sep 12, 2018
.gitignore Add sample code Sep 12, 2018
CHANGELOG.md Initial commit Sep 12, 2018
CONTRIBUTING.md Initial commit Sep 12, 2018
LICENSE.md
README.md Merge branch 'master' into patch-1 Feb 4, 2019
index.js Update aborter usage Sep 19, 2018
package-lock.json Add sample code Sep 12, 2018
package.json Add sample code Sep 12, 2018

README.md

Quickstart - JavaScript SDK v10 for Azure Storage

This repository implements the quickstart sample for the Azure Storage v10 SDK for JavaScript.

Set up

First, clone the repository on your machine:

git clone https://github.com/Azure-Samples/azure-storage-js-v10-quickstart.git

Then, switch to the appropriate folder:

cd azure-storage-js-v10-quickstart

Next, install the dependencies:

npm install

Finally, rename the file .env.example to .env and add your values for AZURE_STORAGE_ACCOUNT_NAME and AZURE_STORAGE_ACCOUNT_ACCESS_KEY.

Running the sample

To run the sample, run the following command on the terminal:

npm start

The output in the terminal will resemble something like this:

Containers:
 - container-a
 - container-b
Container: "demo" is created
Blob "quickstart.txt" is uploaded
Local file "./readme.md" is uploaded
Blobs in "demo" container:
 - quickstart.txt
 - readme-stream.md
 - readme.md
Downloaded blob content: "hello Node SDK"
Block blob "quickstart.txt" is deleted
Container "demo" is deleted
Done
You can’t perform that action at this time.