https://github.com/lmangani/rust-flux-parser-js
wasm flux js parser
https://github.com/lmangani/rust-flux-parser-js
flux influxdata js nodejs parser rust wasm
Last synced: about 2 months ago
JSON representation
wasm flux js parser
- Host: GitHub
- URL: https://github.com/lmangani/rust-flux-parser-js
- Owner: lmangani
- License: apache-2.0
- Created: 2022-04-05T16:39:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-05T17:30:44.000Z (about 4 years ago)
- Last Synced: 2024-10-04T13:22:01.692Z (over 1 year ago)
- Topics: flux, influxdata, js, nodejs, parser, rust, wasm
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 〰️ wasmy flux js parser
JS Flux parser in Rust
### 🥇 Install
```bash
npm install @qxip/wasmy_flux
```
### Functions
- `get_tree` to parse to AST tree
- `get_syntax_error` to check for parsing error
### 🥈 Use
```javascript
const { get_syntax_error, get_tree } = require("@qxip/wasmy_flux");
const source = 'from(bucket:"telegraf/aaa") |> limit(limit:100, offset:10)';
if (get_syntax_error(source) == "" ){
console.log(get_tree(source));
} else { console.log(err) }
```
#### Credits
Based on [wasmy_rust](https://github.com/chnn/wasmy-flux)