https://github.com/mattecapu/md-icons-codepoints
material design icons codepoints as a JSON object
https://github.com/mattecapu/md-icons-codepoints
Last synced: 4 months ago
JSON representation
material design icons codepoints as a JSON object
- Host: GitHub
- URL: https://github.com/mattecapu/md-icons-codepoints
- Owner: mattecapu
- Created: 2016-08-29T09:16:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-03T10:21:54.000Z (over 9 years ago)
- Last Synced: 2025-10-28T05:27:55.192Z (7 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Material Design Icons Codepoints JSON
A JSON object for using [material design icon font](http://google.github.io/material-design-icons/#icon-font-for-the-web).
## Install
The `npm`-way
```
npm i md-icons-codepoints --save
```
## Usage
Just get them from the exported JSON object
```js
import icons from 'md-icons-codepoints';
const myWiFiIcon = `${icons.wifi}`;
```
**All codepoints are exported as Unicode chars**, so be sure to provide the correct charset to your HTML file. The icon font will do the rest.
If you want to use them as HTML entities, it's easy:
```js
function toHTMLHexEntity(icon) {
return `${icon.codePointAt(0)};`;
}
```
## License
ISC