Skip to content

Commit

Permalink
Merge pull request #194 from taskcluster/esm-ready
Browse files Browse the repository at this point in the history
Update usage docs for ESM
  • Loading branch information
lotas authored Aug 30, 2024
2 parents 6cfaa5d + 873d577 commit 93a0cf1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The following example illustrates how to create clients using
**shared key authentication**.
```js
// Load fast-azure-storage client
var azure = require('fast-azure-storage');
import * as azure from 'fast-azure-storage';

// Common options using shared key authentication
var options = {
Expand Down Expand Up @@ -93,7 +93,7 @@ necessary.
Simple example of table and entity creation.
```js
// Load fast-azure-storage client
var azure = require('fast-azure-storage');
import azure from 'fast-azure-storage';

var table = new azure.Table({
accountId: '...',
Expand Down Expand Up @@ -137,7 +137,7 @@ The Azure Storage Queue client aims at interfacing Azure Queue Storage.
Simple example of queue and message creation.
```js
// Load fast-azure-storage client
var azure = require('fast-azure-storage');
import azure from 'fast-azure-storage';

var queue = new azure.Queue({
accountId: '...',
Expand Down Expand Up @@ -183,7 +183,7 @@ eg. logging, auditing
Simple example of a container and blob creation.
```js
// Load fast-azure-storage client
var azure = require('fast-azure-storage');
import azure from 'fast-azure-storage';

var blob = new azure.Blob({
accountId: '...',
Expand All @@ -194,7 +194,7 @@ var blobContent = 'Sample content'; // The content can be a string or a Buffer
// Create container and upload a blob
blob.createContainer('mycontainer').then(function() {
return blob.putBlob('mycontainer', 'myblob', {
type: 'BlockBlob', // Type of the blob
type: 'BlockBlob', // Type of the blob
}, blobContent);
});
```
Expand Down

0 comments on commit 93a0cf1

Please sign in to comment.