pipescript

0.2.7 • Public • Published

Javascript PipeScript

npm version

Installing

You can either directly download pipescript.js from the github, or you can add it to your project:

npm install pipescript

you can then

import pipescript from 'pipescript';

or if you directly downloaded pipescript.js:

<script type="text/javascript" src="pipescript.js"></script>

Usage

Code:

pipescript.Script('$ > 5').Transform([{t: 123.34, d: 4},{t: 123.35, d: 6}])

Output:

[{t:123.34,d:false},{t:123.35,d:true}]

Building

This package requires golang 1.7. It uses gopherjs to create a javascript version of PipeScript.

To build:

git clone https://github.com/connectordb/pipescript
cd pipescript/main/javascript
 
go get ./...
 
npm install
npm run build
npm run test

This will create the pipescript.js file.

You can then try it in the browser by opening tryme.html

Readme

Keywords

none

Package Sidebar

Install

npm i pipescript

Weekly Downloads

0

Version

0.2.7

License

MIT

Last publish

Collaborators

  • dkumor