In the Old : https://www.npmjs.com/package/azure-storage there is a way to simply connect to the local Azure Store Emulator, example:
var azure = require('azure-storage');
var queueSvc = azure.createQueueService("UseDevelopmentStorage=true");
I am unable to find a substitute or example for https://www.npmjs.com/package/@azure/storage-queue
const { QueueServiceClient } = require("@azure/storage-queue");
const queueServiceClient = QueueServiceClient.fromConnectionString("UseDevelopmentStorage=true");
const queueClient = queueServiceClient.getQueueClient("<your queue name>");
// do your stuffs
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.