1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00
simple-icons/scripts/build/templates/index.js
Álvaro Mondéjar e0a4e765ad
Reuse svg getter package template parts (#7457)
* Reuse svg getter package template parts
2022-05-27 15:09:33 +02:00

15 lines
391 B
JavaScript

console.warn('Deprecation warning: The `simple-icons` entrypoint will be removed in the next major. Please switch to using `import * as icons from "simple-icons/icons"` if you need an object with all the icons.')
%s
var icons = {%s};
Object.defineProperty(icons, "Get", {
enumerable: false,
value: function(targetName) {
return icons[targetName];
}
});
module.exports = icons;