mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-11-01 02:47:02 +03:00
* Accept icon rather than title in `iconToSlug` This removes the need in (most of the) calls to this function to seperately check if there is a custom slug already defined for the icon. * Rename `titleToSlug` to `getIconSlug` * Revert unnecessary style change * Update function documentation * Keep `titleToSlug` and add `getIconSlug` helper Unfortunately `this` is not available because we're using arrow syntax for these functions, but refering to `titleToSlug` through `module.exports` works fine as well. * Fix parameter name in `getIconSlug` docs |
||
|---|---|---|
| .. | ||
| templates | ||
| build-package.js | ||
| get-filename.js | ||
| jsonlint.js | ||
| lint.js | ||
| utils.js | ||