🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@dprint/json

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dprint/json

Wasm module for dprint-plugin-json.

latest
Source
npmnpm
Version
0.21.3
Version published
Weekly downloads
4.2K
35.17%
Maintainers
1
Weekly downloads
 
Created
Source

@dprint/json

npm distribution of dprint-plugin-json.

Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-json WASM file.

Example

import { createFromBuffer } from "@dprint/formatter";
import { getPath } from "@dprint/json";
import * as fs from "fs";

const buffer = fs.readFileSync(getPath());
const formatter = createFromBuffer(buffer);

console.log(formatter.formatText("test.json", "{test: 5}"));

Keywords

json

FAQs

Package last updated on 20 Mar 2026

Did you know?

Socket

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.

Install

Related posts