0.2.7 • Published 9 years ago
pipescript v0.2.7
Javascript PipeScript
Installing
You can either directly download pipescript.js from the github, or you can add it to your project:
npm install pipescriptyou 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 testThis will create the pipescript.js file.
You can then try it in the browser by opening tryme.html