dprint-plugin-css
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

dprint-plugin-css

npm distribution of dprint-plugin-css.

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-plugin-css";
import * as fs from "fs";

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

console.log(formatter.formatText("test.css", ".test{color: red}"));

Package Sidebar

Install

npm i dprint-plugin-css

Weekly Downloads

0

Version

0.2.3

License

MIT

Unpacked Size

2.69 MB

Total Files

5

Last publish

Collaborators

  • disrupted