Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Config parsers for:
✅ JSONC (with jsonc-parser
)
With perfect bundling:
✨ Types exported out of the box
✨ Zero config and compact redistribution
✨ Dual ESM/CJS build
✨ Consistent and tested API
✨ Handpicked best libraries (bundle+perf)
[!NOTE] Use unjs/c12 for a full featured configuration loader!
Install package:
# ✨ Auto-detect
npx nypm i confbox
# npm
npm install confbox
# yarn
yarn add confbox
# pnpm
pnpm install confbox
# bun
bun install confbox
Import:
// ESM (tree-shakable)
import {
parseJSON5,
parseJSONC,
parseToml,
parseYaml,
stringifyYaml,
} from "confbox";
// Using individual builds
import { parseYaml, stringifyYaml } from "confbox/yaml";
import { parseToml } from "confbox/toml";
import { parseJSON5 } from "confbox/json5";
import { parseJSONC } from "confbox/jsonc";
// CommonJS
const {
parseJSON5,
parseJSONC,
parseToml,
parseYaml,
stringifyYaml,
} = require("confbox");
parseJSON5(text, options?)
Converts a JSON5 string into an object.
parseJSONC(text, options?)
Converts a JSONC string into an object.
parseToml(text)
Converts a TOML string into an object.
parseYaml(text, options?)
Converts a YAML string into an object.
stringifyYaml(value, options?)
Converts a JavaScript value to a YAML string.
corepack enable
pnpm install
pnpm dev
Made with 💛
Published under MIT License.
FAQs
Compact and high quality YAML, TOML, JSONC and JSON5 parsers
The npm package confbox receives a total of 3,714,794 weekly downloads. As such, confbox popularity was classified as popular.
We found that confbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.