UNPKG

svg-color-linter

Version:

Linting tool to check if SVG files use only colors of a given color palette

12 lines (11 loc) 422 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.toHexColor = void 0; const chroma_js_1 = __importDefault(require("chroma-js")); const toHexColor = (color) => { return (0, chroma_js_1.default)(color).hex(); }; exports.toHexColor = toHexColor;