MCPcopy Create free account
hub / github.com/adobe/react-spectrum / writeToFile

Function writeToFile

packages/@spectrum-icons/build-tools/generateIcons.js:16–19  ·  view source on GitHub ↗
(filepath, data)

Source from the content-addressed store, hash-verified

14import path from 'path';
15
16function writeToFile(filepath, data) {
17 let buffer = Buffer.from(data);
18 fs.writeFileSync(filepath, buffer);
19}
20
21/**
22 * Takes an icon directory and outputs React Spectrum wrapped icons to the output directory.

Callers 1

generateIconsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected