Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
A utility library for working with JSONC files. Doesn't do much more than wrap npm:jsonc-parser, though, so for most people using that library instead would be the move.
@axhxrx/jsonc
Utility library for working with JSONC files. This is a wrapper around the Microsoft JSONC parser (https://github.com/microsoft/node-jsonc-parser) to make certain specific tasks more convenient, but the main difference is that this library exposes a simple CLI to check/format JSONC files on disk.
E.g.:
# check: deno run -R mod.ts **/*.jsonc # format: deno run -RW https://jsr.io/@axhxrx/jsonc/0.0.2/mod.ts --write **/*.jsonc
Happenings
👹 v0.0.2 — add CLI to check/format JSON[C] files on disk
🤖 2024-12-16: repo initialized by Bottie McBotface bot@axhxrx.com
Add Package
deno add jsr:@axhxrx/jsonc
Import symbol
import * as jsonc from "@axhxrx/jsonc";
Import directly with a jsr specifier
import * as jsonc from "jsr:@axhxrx/jsonc";
Add Package
pnpm i jsr:@axhxrx/jsonc
pnpm dlx jsr add @axhxrx/jsonc
Import symbol
import * as jsonc from "@axhxrx/jsonc";
Add Package
yarn add jsr:@axhxrx/jsonc
yarn dlx jsr add @axhxrx/jsonc
Import symbol
import * as jsonc from "@axhxrx/jsonc";
Add Package
vlt install jsr:@axhxrx/jsonc
Import symbol
import * as jsonc from "@axhxrx/jsonc";
Add Package
npx jsr add @axhxrx/jsonc
Import symbol
import * as jsonc from "@axhxrx/jsonc";