Fontawesome svg icon component for mithril https://kliksob.github.io/famicon/
npm install famicon
const m = require("mithril");
const faIconName = require("famicon/dist/solid/faIconName");
m(faIconName, {
svgAttrs: {}, // svg attributes eg. style
pathAttrs: {} // path attributes
});
const { solid } = require("famicon");
const { faIconName } = solid;
const { faIconName } = require("famicon/dist/solid");
const faIconName = require("famicon/dist/solid/faIconName");
npm install -g parcel-bundler
npm run watch-docs
npm run build-docs
Make sure your os is linux. because we use shelljs
git clone https://github.com/kliksob/famicon.git
cd famicon
npm install
node build.js