Warp 10 FLoWS language beautifier

Usage no npm install needed!

<script type="module">
  import senxFlowsBeautifier from 'https://cdn.skypack.dev/@senx/flows-beautifier';



FLoWS is one of the two analysis languages brought by Warp 10 time series database.

FLoWS beautifier was adapted from js-beautifier. It has no dependencies.

Use the FLoWS beautifier

npm install @senx/flows-beautifier
import { FLoWSBeautifier, BeautifierOptions } from '@senx/flows-beautifier';
let beautifier: FLoWSBeautifier = new FLoWSBeautifier();

const result:string = beautifier.flowsBeautify(input);

Default options : 2 spaces for indentation.

More options could be found in BeautifierOptions, and passed to the FLoWSBeautifier constructor.