Skip to content

Commit 93a0cf1

Browse files
authored
Merge pull request #194 from taskcluster/esm-ready
Update usage docs for ESM
2 parents 6cfaa5d + 873d577 commit 93a0cf1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -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
2929
var options = {
@@ -93,7 +93,7 @@ necessary.
9393
Simple 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

9898
var table = new azure.Table({
9999
accountId: '...',
@@ -137,7 +137,7 @@ The Azure Storage Queue client aims at interfacing Azure Queue Storage.
137137
Simple 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

142142
var queue = new azure.Queue({
143143
accountId: '...',
@@ -183,7 +183,7 @@ eg. logging, auditing
183183
Simple 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

188188
var 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
195195
blob.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

Comments
 (0)