
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
ā Bavary is currently not stable and heavily under development.
The API might change and all 0.0.x
releases should be treated as test / preview releases.
Install via npm:
$ npm install bavary
Install via yarn:
$ yarn add bavary
Include directly via jsdelivr:
<script src="https://cdn.jsdelivr.net/npm/bavary/lib/bavary.js"></script>
import {compile} from 'bavary';
// Compile definitions
const parse = compile(`
entry ['A' | 'B']
`);
// Use compiled definitions to parse a string
const parsed = parse('A');
// Logs "A" to the console
console.log(parsed);
The function compile
accepts as second argument a config object;
Check out the documentation to get started or jump directly into one of the examples:
Usage:
$ bvc [files] [options...]
Where files
can be any kind of directory, file or glob-pattern.
If no output file is specified (via --output
) it'll print the result to the console.
Flag | Explanation | Example |
---|---|---|
-w, --watch | Watches source-files matched by [files] | $ bva src/**/*.bv input.txt --watch |
-v, --version | Prints the current version | $ bva --version |
-o, --output <file> | Write results to disk | $ bva --output result.json |
-p, --prettify | Prettify result (Works only in combination with --output ) | $ bva --output result.json --prettify |
-h, --help | Shows usage info | $ bva --help |
FAQs
Customizable, elegant and fast syntax-parser
The npm package bavary receives a total of 0 weekly downloads. As such, bavary popularity was classified as not popular.
We found that bavary demonstrated a not healthy version release cadence and project activity because the last version was released 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.