pipescript
v0.2.7
Published
PipeScript javascript port
Downloads
4
Readme
Javascript PipeScript
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