pipe-web-client

4.0.1 • Public • Published

Pipe web client

Build Status Coverage Status

Installation

npm install pipe-web-client --save

Usage

{compile-query} = (require \pipe-web-client) end-point: "pipe-api-server-url"

{execute, transformation-function, presentation-function} <- compile-query \your-query-id .then

# execute :: (Promise p) => Boolean -> Parameters -> p result
query-result <- execute false, {} .then

# transformation-function :: result -> Parameters -> result
transformed-result = transformation-function query-result, {}

# presentation-function :: DOMElement -> result -> Parameters -> DOM()
presentation-function view, transformed-result, {}

Plottables

Demo / Test bed

Development

  • run gulp
  • visit http://localhost:8001
  • for unit tests, run npm test
  • for code coverage, run gulp coverage

Package Sidebar

Install

npm i pipe-web-client

Weekly Downloads

8

Version

4.0.1

License

ISC

Last publish

Collaborators

  • furqan.zafar
  • homam