Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-storage-node-promisify

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-storage-node-promisify

`azure-storage` is a wonderful and _cheap_ way to store objects and blobs. Be sure to check it out here: [https://azure.microsoft.com/en-us/services/storage/]. However, the current version of the [Azure Storage API for Node](https://github.com/Azure/azure

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

azure-storage-node-promisify

azure-storage is a wonderful and cheap way to store objects and blobs. Be sure to check it out here: [https://azure.microsoft.com/en-us/services/storage/]. However, the current version of the Azure Storage API for Node. The entire API uses callbacks. Node.js APIs suffered the same issue, leading ot callback hell. The solution is to promisify the callback functions so that it is compatible with await / async syntax. Since Node.js 8.x, a new promisify function has been introduced for the util module.

Installation

npm install azure-storage-node-promisify

Usage

This library is Typescript friendly. It tries to preserve the parameter as much as possible.

import azure from 'azure-storage';
import { promisifyTableService } from 'azure-storage-node-promisify';

const connectionString = '...'; // you can use any of the Azure Storage Node SDK's auth methods
const tableService = promisifyTableService(azure.createTableService(connectionString));

(async () => {
  await tableService.createTableIfNotExistsAsync('testTable');

  // Welcome to the future of CHEAP storage and async / await syntax!
})();

FAQs

Package last updated on 29 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc