An open API service indexing awesome lists of open source software.

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

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