express-fonts
v1.0.4
Published
ExpressJS middleware for font hosting and css generating.
Downloads
209
Readme
Example usage
server.js
const app = require('express')();
const fonts = require('express-fonts');
app.use(fonts({
'csspath': '/css',
'fontspath': '/fonts',
'fontsdir': './fonts'
}));
html
<link rel="stylesheet" href="/css?family=Museo Sans" type="text/css" />