@@ -23,7 +23,7 @@ The following example illustrates how to create clients using
23
23
** shared key authentication** .
24
24
``` js
25
25
// Load fast-azure-storage client
26
- var azure = require ( ' fast-azure-storage' ) ;
26
+ import * as azure from ' fast-azure-storage' ;
27
27
28
28
// Common options using shared key authentication
29
29
var options = {
@@ -93,7 +93,7 @@ necessary.
93
93
Simple example of table and entity creation.
94
94
``` js
95
95
// Load fast-azure-storage client
96
- var azure = require ( ' fast-azure-storage' ) ;
96
+ import azure from ' fast-azure-storage' ;
97
97
98
98
var table = new azure.Table ({
99
99
accountId: ' ...' ,
@@ -137,7 +137,7 @@ The Azure Storage Queue client aims at interfacing Azure Queue Storage.
137
137
Simple example of queue and message creation.
138
138
``` js
139
139
// Load fast-azure-storage client
140
- var azure = require ( ' fast-azure-storage' ) ;
140
+ import azure from ' fast-azure-storage' ;
141
141
142
142
var queue = new azure.Queue ({
143
143
accountId: ' ...' ,
@@ -183,7 +183,7 @@ eg. logging, auditing
183
183
Simple example of a container and blob creation.
184
184
``` js
185
185
// Load fast-azure-storage client
186
- var azure = require ( ' fast-azure-storage' ) ;
186
+ import azure from ' fast-azure-storage' ;
187
187
188
188
var blob = new azure.Blob ({
189
189
accountId: ' ...' ,
@@ -194,7 +194,7 @@ var blobContent = 'Sample content'; // The content can be a string or a Buffer
194
194
// Create container and upload a blob
195
195
blob .createContainer (' mycontainer' ).then (function () {
196
196
return blob .putBlob (' mycontainer' , ' myblob' , {
197
- type: ' BlockBlob' , // Type of the blob
197
+ type: ' BlockBlob' , // Type of the blob
198
198
}, blobContent);
199
199
});
200
200
```
0 commit comments