New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

climb-social

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

climb-social

JS client library for Climb.social.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Climb.social

Travis build

JS library for interacting with the Climb.social API.

Provides an RxJS Observable of pages of approved items for use in JS applications.

Looking for simple HTML embed code? Try the react-climb-social. There's also angular-climb and a simple JSONP REST API for you to choose from.

Description

The default exports of the module exposes a getStream method that accepts a collectionId which you can subscribe to.

Installation

npm install climb-social --save-dev

Usage

Make sure you've got a Climb.social account, you've made a new collection and you've approved some content.

Then note down your collectionId.

Getting approved items from your Climb.social collection

var climb = require('climb-social');

var collectionId = '561ba63445284e1740e016f7';

climb
    .getStream(collectionId)
    .subscribe(function(items) {

        // i.e. Do something with items:
        items.map(function(item) {
            console.log(item.author.username);
        });

    });

Specifying a polling interval

You can also specify how often you'd like to poll the Climb.social API for changes.

Pass a positive number (representing the number of seconds) as a second arg to getStream():

climb
    .getStream(collectionId, 40)
    .subscribe(function(items) {
        ...
    });
});

Keywords

FAQs

Package last updated on 26 Jan 2016

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