
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@calyptia/fluent-bit-config-parser
Advanced tools
Configuration parser for Fluent-bit
Getting Started
fluent-bit configuration parser will allow you to validate some aspects of fluent-bit configuration.
for more information about fluent-bit configuration you can visit fluent-bit website.
You can import the parser as follows:
import { FluentBitSchema } from '@calyptia/fluent-bit-config-parser';
This library offers a couple of methods:
schema
: it will return the parsed configuration as a fluent-bit schema.
toString()
: it will return the parsed schema, back to a string
source
: it will return the config as it was provided.
FluentBitSchema.isFluentBitConfiguration
: A static method, to validate if the configuration is fluentBit. It's important to notice, that this method, will not confirm if the provided config is valid. For that please see below:
import fs from 'fs';
import { FluentBitSchema } from '@calyptia/fluent-bit-config-parser';
const file = fs.readFileSync('/path/to/file.conf', { encoding: 'utf-8' });
console.log(FluentBitSchema.isFluentBitConfiguration(file)); // => true/false
fluent-bit
configuration is valid:import fs from 'fs';
import { FluentBitSchema } from '@calyptia/fluent-bit-config-parser';
const file = fs.readFileSync('/path/to/file.conf', { encoding: 'utf-8' });
try {
const config = new FluentBitSchema(file);
console.log('yay! my configuration is valid');
} catch (e) {
console.log(e.message); // this message will provide some insight int what went wrong.
}
import fs from 'fs';
import { FluentBitSchema } from '@calyptia/fluent-bit-config-parser';
const file = fs.readFileSync('/path/to/file.conf', { encoding: 'utf-8' });
const config = new FluentBitSchema(file);
console.log(config.toString());
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated greatly appreciated.
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.
FAQs
fluent-bit config parser for js/ts
The npm package @calyptia/fluent-bit-config-parser receives a total of 12 weekly downloads. As such, @calyptia/fluent-bit-config-parser popularity was classified as not popular.
We found that @calyptia/fluent-bit-config-parser 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.