material design icons codepoints as a JSON object
npm install md-icons-codepointsA JSON object for using material design icon font.
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)};;
}
``