logical-phrase
npm install logical-phrase# or bower install logical-phrase
Transforms following JSON:
into:
foo AND bar AND NOT baz
Furthermore, with a given configuration as follows:
var lp = ; lp;
it can transform this:
into:
Select users who did not visit 'site.homepage' and did use campaign 'x' or did use campaign 'y'
It is also possible to wrap each level of items into different HTML tags.
See /test for more examples.