
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@ajuhos/malloy-filter
Advanced tools
There is a unique filter language for each filterable data type. The documentation-bRoKeN-lInK describes the various languages.
malloy-filter use moo and nearley to generate parsers for each sub language. The grammars are in grammars.
After changing a .ne file use npm run build to update the generated parser.
Refer to the clause interfaces for details on the
output of the parser, or look at the parser tests in src/test/ for more examples
of parser output.
import {StringFilterExpression, StringClause} from '@ajuhos/malloy-filter'
// or ...
// NumberFilterExpression, NumberClause
// BooleanFilterExpression, BooleanClause
// TemporalFilterExpression, TemporalClause
// Each has two entry points, "parse" and "unparse"
const stringParse = StringFilterExpression.parse('FOO%,-FOOD')
if (stringParse.parsed) {
console.log(JSON.stringify(stringParse.parsed, null, 2));
/*
* Output will look something like this ...
* { operator: ',',
* members: [
* {operator: 'starts', values: ['FOO']}
* {operator: '=', not: true, values: ['FOOD']}
* ],
* }
*/
console.log(StringFilterExpression.unparse(stringParse.parse));
/*
* There will be minor variations on unparse, for example in this
* case there will be space after the comma:
*
* FOO%, -FOOD
*/
} else {
console.log(stringParse.log);
}
The malloy-filter tests use Jest.
npm run build
npm run test
FAQs
Parsers for the Malloy filtering sub-languages
The npm package @ajuhos/malloy-filter receives a total of 43 weekly downloads. As such, @ajuhos/malloy-filter popularity was classified as not popular.
We found that @ajuhos/malloy-filter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.