1.0.0 • Published 4 years ago

willcore.fontawesome v1.0.0

Weekly downloads
3
License
LGPL-2.1-only
Repository
github
Last release
4 years ago

Info

WillCore.FontAwesome contains Font Awesome style and font files and assignables.

For more info on Font Awesome, goto https://fontawesome.com/icons?d=gallery.

Installing

WillCore.FontAwesome can be installed on an existing WillCore.UI project using NPM:

npm install willcore.fontawesome

Activating

After installing, the FontAwesome module can be activated via the "fontawesome" assignable on a WillCore.UI instance :

willcoreInstance.server.ui.fontAwesomeEndpoint.fontawesome;

"fontAwesomeEndpoint" is the file service name where the Font Awesome files will be served from. This can be changed to avoid clashing with existing file services.

Full Example:

const willCoreProxy = require("willcore.core");
let willcore = willCoreProxy.new();
willcore.testServer.server[__dirname] = 8581;
willcore.testServer.http;
willcore.testServer.ui;
willcore.testServer.ui.fontawesomeEndpoint.fontawesome;

WillCore.fontawesome is only activated server-side, no client side activation is required. After activating, Font Awesome will be available and ready to use in your project.