
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Bracko is a simple data format. This NPM package has a parse
, stringify
, jsonToBracko
, and a brackoToJson
method.
[Key]: Value
anything that's not in this format will be treated as a comment
[Key]: Value
[Key]: Overriding the value
this will override [Key] to "Overriding the value"
in other words, this will return { Key: "Overriding the value" }
[You can use spaces in keys]: and it'll work!
[You can also use numbers and special characters!11_.]: and it'll still work
[Everything except new lines]: will work.
[Person]: -
[Name]: John
[Surname]: Doe
[Birthday]: -
[Day]: 1
[Month]: 1
[Year]: 2000
[Birthday]: -
[Person]: -
parsing this returns:
{
Person: {
Name: "John",
Surname: "Doe",
Birthday: {
Day: "1",
Month: "1",
Year: "2000"
}
}
}
const Bracko = require("bracko");
Bracko.parse(`
[Name]: John
[Surname]: Doe
[Birthday]: Jan 1st 2000
`);
/*
{
Name: "John",
Surname: "Doe",
Birthday: "Jan 1st 2000"
}
*/
Bracko.stringify({
name: "John",
surname: "Doe",
birthday: "Jan 1st 2000"
});
/*
[name]:John
[surname]:Doe
[birthday]:Jan 1st 2000
*/
Bracko.brackoToJson(`
[Name]: John
[Surname]: Doe
[Birthday]: Jan 1st 2000
`);
/*
{"Name":"John","Surname":"Doe","Birthday":"Jan 1st 2000"}
*/
Bracko.brackoToJson(`
[Person]: -
[Name]: John
[Surname]: Doe
[Birthday]: Jan 1st 2000
[Person]: -
`);
/*
{"Person":{"Name":"John","Surname":"Doe","Birthday":"Jan 1st 2000"}}
*/
Bracko.jsonToBracko(`{
"Person": {
"Name": "John",
"Surname": "Doe"
}
}`);
/*
[Person]:-
[Name]:John
[Surname]:Doe
[Person]:-
*/
FAQs
Bracko is an easy-to-learn data format
The npm package bracko receives a total of 0 weekly downloads. As such, bracko popularity was classified as not popular.
We found that bracko 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.