Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: liqe
node v16.18.0
endpoint
share
tweet
var liqe = require("liqe") const searches = [ "(a b)", "+(a b)", "-(a b)", "c:(a b)", "+c:(a b)", "-c:(a b)" ]; const testString = (query) => { console.log(query); try { const ast = liqe.parse(query); console.log("OK"); } catch (error) { console.log(error); } } searches.forEach( (s) => testString(s))
Created from: https://npm.runkit.com/liqe
Loading…
Clone and edit this document