Skip to content

Release 2 updated icons (v14.0.1)

Choose a tag to compare

@simple-icons simple-icons released this 29 Dec 04:10
· 669 commits to develop since this release

2 updated icons

New entry point simple-icons/icons.json

We exposed the _data/simple-icons.json as simple-icons/icons.json in #12433 (@LitoMore).

Now you can import the JSON file directly instead of using the getIconsData(). The import way suits more scenes since it has no fs calls.

// CommonJS
-const {getIconsData} = require('simple-icons/sdk');
-const icons = await getIconsData();
+const icons = require('simple-icons/icons.json');
// ESM
-import {getIconsData} from 'simple-icons/sdk';
-const icons = awaiat getIconsData();
+import icons from 'simple-icons/icons.json' with {type: 'json'};