mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 10:31:06 +03: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:
		
							parent
							
								
									86a8f89e96
								
							
						
					
					
						commit
						06f09a265d
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @ -70,14 +70,8 @@ Alternatively, you can also import all icons from a single file, where `[ICON SL | |||||||
| import { siSimpleicons } from 'simple-icons/icons' | import { siSimpleicons } from 'simple-icons/icons' | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| You can also import the needed icons individually, where `[ICON SLUG]` is replaced by a [slug]. | > :warning: The old way of importing with `require('simple-icons/icons/[ICON SLUG]')` is deprecated and | ||||||
| ```javascript | will be removed in v7.0.0. | ||||||
| // Import a specific icon by its slug as: |  | ||||||
| // require('simple-icons/icons/[ICON SLUG]'); |  | ||||||
| 
 |  | ||||||
| // For example: |  | ||||||
| const icon = require('simple-icons/icons/simpleicons'); |  | ||||||
| ``` |  | ||||||
| 
 | 
 | ||||||
| Either method will return an icon object: | Either method will return an icon object: | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user