Skip to main content
Home

Built 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.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
JSR Score
94%
Published
a year ago (0.0.2)

@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

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@axhxrx/jsonc

Import symbol

import * as jsonc from "@axhxrx/jsonc";
or

Import directly with a jsr specifier

import * as jsonc from "jsr:@axhxrx/jsonc";

Add Package

pnpm i jsr:@axhxrx/jsonc
or (using pnpm 10.8 or older)
pnpm dlx jsr add @axhxrx/jsonc

Import symbol

import * as jsonc from "@axhxrx/jsonc";

Add Package

yarn add jsr:@axhxrx/jsonc
or (using Yarn 4.8 or older)
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";