FogJS:
FogJS currently supports 3 of the more popular Azure services: Blob Storage, Table Storage, and Service Bus. One of the most broad features in FogJS is that of support for promises. In fact, almost every function provided by the Azure SDK for Node.js has been replicated in Fog with the results returned as a promise (with the help of Q.js).
The second big feature is related to making it as easy as possible to interact with Azure. This is primarily accomplished with "simplified functions" that follow a convention over configuration approach.
Example:
Here's a quick example of one option for how to use Blob Storage with FogJS:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fog = require("fogjs"); | |
var fogBlob = fog.blobStorage; | |
var containerName = "testcontainer"; | |
var blobName = "testblob"; | |
fogBlob.createBlockBlobFromText({ | |
"containerName": containerName, | |
"blobName" : blobName, | |
"blobText": "My super awesome text to upload" | |
}).then(function() { | |
return fogBlob.getBlobToText({ | |
"containerName": containerName, | |
"blobName" : blobName | |
}); | |
}).then(function(response) { | |
console.log("The blob contains the text: " + response.text); | |
return fogBlob.deleteBlob({ | |
"containerName": containerName, | |
"blobName" : blobName | |
}); | |
}).then(function(response) { | |
console.log("done"); | |
}); |
As usual, the code and tests can be found on my GitHub.