mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
* cleanup scripts * Move helpers to package * Fixes scripts * Fix scripts * Formatting * Fix helpers import paths * Remove lucide-figma * Rename helpers package * Fix build * formatting * Adjust main build-icons file * Add export casing * Adds `exportModuleNameCasing` fro lab project * format files * Bump package version @lucide/build-icons * Revert changes in icons * Revert changes in PR yml * Fix lint issues * Fix site build * fix lint errors * Attempt fix linting * Fix lint errors
13 lines
461 B
JavaScript
13 lines
461 B
JavaScript
/* eslint-disable import/prefer-default-export */
|
|
import { hash } from './hash.mjs';
|
|
|
|
/**
|
|
* Generate Hashed string based on name and attributes
|
|
*
|
|
* @param {object} seed
|
|
* @param {string} seed.name A name, for example an icon name
|
|
* @param {object} seed.attributes An object of SVGElement Attrbutes
|
|
* @returns {string} A hashed string of 6 characters
|
|
*/
|
|
export const generateHashedKey = ({ name, attributes }) => hash(JSON.stringify([name, attributes]));
|