MCPcopy
hub / github.com/FullHuman/purgecss / writeCSSToFile

Function writeCSSToFile

packages/purgecss/src/bin.ts:12–20  ·  view source on GitHub ↗
(filePath: string, css: string)

Source from the content-addressed store, hash-verified

10import { Options } from "./types";
11
12async function writeCSSToFile(filePath: string, css: string) {
13 try {
14 await fs.promises.writeFile(filePath, css);
15 } catch (err: unknown) {
16 if (err instanceof Error) {
17 console.error(err.message);
18 }
19 }
20}
21
22async function read(stream: NodeJS.ReadStream) {
23 const chunks = [];

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…