npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-azure-blob-storage-asif

v0.4.2

Published

Connector to Azure Blob Storage on Node-Red - custom Asif

Downloads

6

Readme

node-red-contrib-azure-blob-storage-asif

Note: This is a FOrk! node-red-contrib-azure-blob-storage is a Node-RED node that allows you to work with Azure Blob Storage. You can create and delete Containers and also blob files.

It contains tww Node-RED cloud nodes: Azure Save Blob Storage and Azure Get Bob Storage

Azure Blob Storage

Node-Red node to connect to Azure Blob Storage

Ex: 'msg.payload' -> filename that you need to upload. Ex: filename.txt

  • Use msg.payload to send a file to save on Azure Blob Storage.

  • Use msg.filename to define Storage Blob name. This is convenient if you for exampel want to inject a timestamp in the filename. Leave the field empty to use msg.filename

  • This file must be in the same folder of Node-RED user directory - typically ~/.node-red

Installation

npm install -g node-red-contrib-azure-blob-storage


## How to Use



### Node-RED Setup
Follow the instructions [here](http://nodered.org/docs/getting-started/installation) to get Node-RED setup locally.

Saving data into Azure Blob Storage

  1. Open Node-RED, usually: http://127.0.0.1:1880

  2. Go to Hamburger Menu -> Import -> Clipboard

  3. Paste the following code into the "Import nodes" dialog

    [{"id":"ead7871a.8172c8","type":"inject","z":"5e92f737.c60d68","name":"Payload","topic":"","payload":"DocumentTest.txt","payloadType":"str","repeat":"","crontab":"","once":false,"x":436,"y":273,"wires":[["b0dbc35f.28665"]]},{"id":"fdab4f1f.0cab","type":"debug","z":"5e92f737.c60d68","name":"Log","active":true,"console":"false","complete":"true","x":846,"y":273,"wires":[]},{"id":"f65e9c4e.e7afb","type":"debug","z":"5e92f737.c60d68","name":"Log","active":true,"console":"false","complete":"true","x":846,"y":333,"wires":[]},{"id":"b3f32ebe.8a2ee","type":"inject","z":"5e92f737.c60d68","name":"Payload","topic":"","payload":"DocumentTest.txt","payloadType":"str","repeat":"","crontab":"","once":false,"x":436,"y":333,"wires":[["e6748f3.2163b7"]]},{"id":"b0dbc35f.28665","type":"Save Blob","z":"5e92f737.c60d68","name":"Azure Save Blob Storage","x":646,"y":274,"wires":[["fdab4f1f.0cab"]]},{"id":"e6748f3.2163b7","type":"Get Blob","z":"5e92f737.c60d68","name":"Azure Get Blob Storage","x":647,"y":333,"wires":[["f65e9c4e.e7afb"]]}]
  4. Double-click the Save Payload node

  5. Enter your filename into the Payload field and click Done. Check "Inject once at start?" to send that file when you click Deploy.

  6. Double-click the Azure Save Blob Storage node, enter your Storage Account Name, Storage Account Key and your desired Container Name and Blob Name. Now click Done.

    If you leave the Storage Blob name blank, the text in the msg.payload will be used as your blob name. Eg. if your msg.payload is blob1.txt, and the Storage Blob Name property is empty, the blob name will be assigned as blob1

  7. Click Deploy

  8. Click the square button on the left side of the Save Payload node.

  9. Click on the debug tab to your right and you'll see the output confirming that your data was sent.

Getting data from Azure Blob Storage

  1. Double-click the Get Payload node

  2. Enter your filename into the Payload field and click Done.

  3. Double-click the Azure Save Blob Storage node, enter your Storage Account Name, Storage Account Key and your desired Container Name and Blob Name. Now click Done.

  4. Click Deploy

  5. Click the square button on the left side of the Get Payload node.

  6. Click on the debug tab to your right and you'll see the name of file that you just downloded to node-red local folder.

References

You can read more about Azure Storage here.