MCPcopy
hub / github.com/simple-icons/simple-icons / writeIconsData

Function writeIconsData

scripts/utils.js:36–42  ·  view source on GitHub ↗
(iconsData, minify = false)

Source from the content-addressed store, hash-verified

34 * @param {boolean} [minify] Whether to minify the JSON output.
35 */
36export const writeIconsData = async (iconsData, minify = false) => {
37 await fs.writeFile(
38 getIconsDataPath(),
39 `${JSON.stringify(iconsData, null, minify ? 0 : '\t')}\n`,
40 'utf8',
41 );
42};
43
44/**
45 * Get SPDX license IDs from `spdx-license-ids` package.

Callers 4

add-icon-data.jsFile · 0.90
remove-icon.jsFile · 0.90

Calls 1

getIconsDataPathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…