
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
⚠ 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.