mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-15 20:25:06 +02:00
Introduce iconoir
npm package
Available under https://www.npmjs.com/package/iconoir Tested with Vite - see https://vitejs.dev/guide/assets.html#importing-asset-as-url Closes #61
This commit is contained in:
parent
b909a29495
commit
830a4c9544
2
.npmignore
Normal file
2
.npmignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!icons
|
14
README.md
14
README.md
|
@ -28,7 +28,19 @@
|
|||
|
||||
## Basic Usage
|
||||
|
||||
You can download any icon of the pack directly from https://iconoir.com or get them from the repository.
|
||||
You can download any icon of the pack directly from https://iconoir.com or get them from this repository.
|
||||
|
||||
Additionally, the icons are available via the `iconoir` NPM package:
|
||||
```bash
|
||||
yarn add iconoir
|
||||
# or
|
||||
npm i iconoir
|
||||
```
|
||||
|
||||
Example usage:
|
||||
```js
|
||||
import Iconoir from 'iconoir/icons/iconoir.svg'
|
||||
```
|
||||
|
||||
## React
|
||||
|
||||
|
|
20
package.json
20
package.json
|
@ -1,10 +1,28 @@
|
|||
{
|
||||
"name": "iconoir",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": "A Simple and Definitive Open-Source Icons Library",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"icons"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "node ./bin/build.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/lucaburgio/iconoir.git"
|
||||
},
|
||||
"keywords": [
|
||||
"icons",
|
||||
"svg",
|
||||
"library"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/lucaburgio/iconoir/issues"
|
||||
},
|
||||
"homepage": "https://iconoir.com",
|
||||
"devDependencies": {
|
||||
"@svgr/cli": "^5.5.0",
|
||||
"execa": "^5.1.1",
|
||||
|
|
|
@ -18,14 +18,15 @@
|
|||
"keywords": [
|
||||
"icons",
|
||||
"svg",
|
||||
"library"
|
||||
"library",
|
||||
"react-native"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/lucaburgio/iconoir/issues"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"homepage": "https://github.com/lucaburgio/iconoir#readme",
|
||||
"homepage": "https://iconoir.com",
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.6 || ^17",
|
||||
"react-native": ">=0.50.0",
|
||||
|
|
|
@ -18,14 +18,15 @@
|
|||
"keywords": [
|
||||
"icons",
|
||||
"svg",
|
||||
"library"
|
||||
"library",
|
||||
"react"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/lucaburgio/iconoir/issues"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"homepage": "https://github.com/lucaburgio/iconoir#readme",
|
||||
"homepage": "https://iconoir.com",
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.6 || ^17"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue