1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

Add warning about v6.0.0 npm package deprecation to README (#6967)

* Add warning about v6.0.0 npm package deprecation

* Update README.md

* Update README.md
This commit is contained in:
Álvaro Mondéjar 2021-12-17 17:22:12 +01:00 committed by GitHub
parent 86a8f89e96
commit 06f09a265d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,14 +70,8 @@ Alternatively, you can also import all icons from a single file, where `[ICON SL
import { siSimpleicons } from 'simple-icons/icons'
```
You can also import the needed icons individually, where `[ICON SLUG]` is replaced by a [slug].
```javascript
// Import a specific icon by its slug as:
// require('simple-icons/icons/[ICON SLUG]');
// For example:
const icon = require('simple-icons/icons/simpleicons');
```
> :warning: The old way of importing with `require('simple-icons/icons/[ICON SLUG]')` is deprecated and
will be removed in v7.0.0.
Either method will return an icon object: