{"library":"dprint-node","type":"library","category":null,"description":"The `dprint-node` package provides a high-performance Node.js API for integrating the `dprint` TypeScript and JavaScript code formatter into applications. Leveraging Rust via `napi-rs`, it offers significantly faster formatting speeds compared to traditional JavaScript-based formatters like Prettier, a key differentiator showcased in its benchmarks. The library is currently stable at version 1.0.8, with a focus on active maintenance, indicated by consistent patch releases addressing bug fixes and internal dependency updates. Its core functionality involves a simple `dprint.format` method, which accepts a file path, the code string, and an optional configuration object, enabling developers to programmatically apply `dprint`'s extensive formatting rules for TypeScript, JavaScript, and JSX/TSX syntax. Users can customize formatting behavior by passing configuration options that align with the `dprint` plugin documentation.","language":"javascript","status":"active","version":"1.0.8","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dprint-node","imports":["const dprint = require('dprint-node');","import dprint from 'dprint-node';","import type { Configuration } from 'dprint-node/types';"]},{"cmd":"yarn add dprint-node","imports":[]},{"cmd":"pnpm add dprint-node","imports":[]}],"homepage":null,"github":"https://github.com/devongovett/dprint-node","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dprint-node","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dprint-node/compatibility"}}