{"id":13478678,"url":"https://github.com/devongovett/dprint-node","last_synced_at":"2025-05-15T11:06:17.091Z","repository":{"id":37791431,"uuid":"373051489","full_name":"devongovett/dprint-node","owner":"devongovett","description":"A node API for the dprint TypeScript and JavaScript code formatter","archived":false,"fork":false,"pushed_at":"2023-09-15T04:48:55.000Z","size":86,"stargazers_count":490,"open_issues_count":13,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T19:57:12.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devongovett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-02T05:35:56.000Z","updated_at":"2025-04-03T07:11:50.000Z","dependencies_parsed_at":"2024-06-18T13:40:33.382Z","dependency_job_id":"11fd1620-b98b-47a7-bd96-d531287b3339","html_url":"https://github.com/devongovett/dprint-node","commit_stats":{"total_commits":45,"total_committers":3,"mean_commits":15.0,"dds":0.3555555555555555,"last_synced_commit":"41c97ee30093e5d448c2f68c9c81f502052a0290"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fdprint-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fdprint-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fdprint-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fdprint-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devongovett","download_url":"https://codeload.github.com/devongovett/dprint-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328385,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T16:02:00.607Z","updated_at":"2025-05-15T11:06:17.056Z","avatar_url":"https://github.com/devongovett.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# dprint-node\n\nA node API for the [dprint](https://dprint.dev) TypeScript and JavaScript code formatter. It's written in Rust for blazing fast speed.\n\n## Usage\n\nPass a file path and the code to format to `dprint.format`.\n\n```js\nconst dprint = require('dprint-node');\n\ndprint.format(filePath, code);\n```\n\nYou can also optionally pass some configuration options as an object to the third parameter. All of the [options listed here](https://dprint.dev/plugins/typescript/config/) are supported.\n\n```js\ndprint.format(filePath, code, {\n  lineWidth: 100\n});\n```\n\n## Benchmark\n\n```\n$ node bench.js\n#1 dprint: 12,173 opts/sec, ±17% (mean: 0.082ms, stddev: 0.051ms, 50 samples)\n#2 prettier: 450 opts/sec, ±53% (mean: 2.222ms, stddev: 4.229ms, 50 samples)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fdprint-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevongovett%2Fdprint-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fdprint-node/lists"}