jao-icons
v1.5.8
Published
Icon set - Jeffrey Arts Online
Readme
JAO icon set
Pixel-based icon set made by Jeffrey Arts, based on binary 2-dimensional arrays. This module will generate SVG icons, based on the available icons in the set Icon(<size/name>)
Installation
npm install --save jao-icons
yarn add jao-iconsHow to use
1. Generate SVG elements
import { Icon } from "jao-icons"
Icon("small/cross")
// Output: SVG domElement2. Get the binary array
import { iconMap } from "jao-icons"
console.log(iconMap.small.cross)
// Output: 2-Dimensional array
// [
// [1,0,0,0,1],
// [0,1,0,1,0],
// [0,0,1,0,0],
// [0,1,0,1,0],
// [1,0,0,0,1]
// ]