Socket
Socket
Sign inDemoInstall

ipushpull-js

Package Overview
Dependencies
192
Maintainers
2
Versions
224
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ipushpull-js

`npm install ipushpull-js`


Version published
Weekly downloads
162
decreased by-35.97%
Maintainers
2
Install size
64.8 MB
Created
Weekly downloads
 

Readme

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

Last updated on 16 Oct 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc