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

dblsqd-sdk

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dblsqd-sdk

Client module for DBLSQD.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

dblsqd Node.js SDK

This module provides a simple Promise-based API for retrieving and parsing DBLSQD Feeds.

Which DBLSQD module should I use?

This module is useful for adding update notifications and/or auto-updates to any Node.js application.

If you are using Electron, you can also use the drop-in auto-update UI built on top of this module, dblsqd-electron.

If you need access to the full API of DBLSQD (e. g. for integrating DBLSQD into deployment tools), check out the dblsqd-api module.

Installing

You can install dblsqd-sdk via npm. Add dblsqd-sdk to your package.json or install it via the command-line: npm i --save dblsqd-sdk

Usage

Use dblsqd-sdk in your application like this:

const {Feed} = require("dblsqd-sdk")

let feed = new Feed("https://feeds.dblsqd.com/:app_token", ":channel", ":os", ":arch")
feed.load().then(() => {
    //Get all available releases
    const releases = feed.getReleases()

    //Only get updates to the current version
    const {version} = require("./package.json")
    const updates = feed.getUpdates(version)

    //Download an update
    if (updates.length > 0) {
        feed.downloadRelease(updates[0].version).then(file => {
            console.log(`The update was successfully downloaded to ${file}`)
        })
    }
})

FAQs

Package last updated on 30 Apr 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