@dprint/typescript
TypeScript icon, indicating that this package has built-in type declarations

0.90.4 • Public • Published

@dprint/typescript

npm distribution of dprint-plugin-typescript.

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

Example

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

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

console.log(formatter.formatText("test.ts", "const   t    =    5;"));

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.90.4
    290
    • latest

Version History

Package Sidebar

Install

npm i @dprint/typescript

Weekly Downloads

6,546

Version

0.90.4

License

MIT

Unpacked Size

5.72 MB

Total Files

5

Last publish

Collaborators

  • dsherret