@@ -23,7 +23,7 @@ The following example illustrates how to create clients using
2323** shared key authentication** .
2424``` js
2525// Load fast-azure-storage client
26- var azure = require ( ' fast-azure-storage' ) ;
26+ import * as azure from ' fast-azure-storage' ;
2727
2828// Common options using shared key authentication
2929var options = {
@@ -93,7 +93,7 @@ necessary.
9393Simple example of table and entity creation.
9494``` js
9595// Load fast-azure-storage client
96- var azure = require ( ' fast-azure-storage' ) ;
96+ import azure from ' fast-azure-storage' ;
9797
9898var table = new azure.Table ({
9999 accountId: ' ...' ,
@@ -137,7 +137,7 @@ The Azure Storage Queue client aims at interfacing Azure Queue Storage.
137137Simple example of queue and message creation.
138138``` js
139139// Load fast-azure-storage client
140- var azure = require ( ' fast-azure-storage' ) ;
140+ import azure from ' fast-azure-storage' ;
141141
142142var queue = new azure.Queue ({
143143 accountId: ' ...' ,
@@ -183,7 +183,7 @@ eg. logging, auditing
183183Simple example of a container and blob creation.
184184``` js
185185// Load fast-azure-storage client
186- var azure = require ( ' fast-azure-storage' ) ;
186+ import azure from ' fast-azure-storage' ;
187187
188188var blob = new azure.Blob ({
189189 accountId: ' ...' ,
@@ -194,7 +194,7 @@ var blobContent = 'Sample content'; // The content can be a string or a Buffer
194194// Create container and upload a blob
195195blob .createContainer (' mycontainer' ).then (function () {
196196 return blob .putBlob (' mycontainer' , ' myblob' , {
197- type: ' BlockBlob' , // Type of the blob
197+ type: ' BlockBlob' , // Type of the blob
198198 }, blobContent);
199199});
200200```
0 commit comments