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

ipushpull-js

Package Overview
Dependencies
Maintainers
2
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipushpull-js

`npm install ipushpull-js`

  • 3.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
265
increased by579.49%
Maintainers
2
Weekly downloads
 
Created
Source

ipushpull javascript api

Install

npm install ipushpull-js

Usage

import ipushpull from 'ipushpull-js';
import { IPageService } from 'ipushpull-js/dist/Page/Page';

ipushpull.config.set({
    api_url: "https://test.ipushpull.com/api",
    api_version: "2.0",
    ws_url: "https://test.ipushpull.com",
    web_url: "https://test.ipushpull.com",
    docs_url: "https://docs.ipushpull.com",
    storage_prefix: "ipp_local",
    api_key: "???",
    api_secret: "???",
    transport: "polling",
    hsts: false, // strict cors policy
});

let page: IPageService = new ipushpull.Page([page id|name], [folder id|name]);

page.on(page.EVENT_READY, () => {
    console.log("EVENT_READY");
    console.log("page data", page.data);
    console.log("page content", page.Content.current);
});

page.on(page.EVENT_NEW_CONTENT, (data) => {
    console.log("EVENT_NEW_CONTENT", data);
    console.log("EVENT_NEW_CONTENT", data.diff);
});

Demo

See ./build/index.html

Development

webpack --watch --config webpack.dev.js

Build

tsc
npm run prod

Documentation

# Install the global CLI
npm install --global typedoc

#Execute typedoc on your project
typedoc --out docs ./src

FAQs

Package last updated on 16 Oct 2020

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