npm

npm’s 2019 JavaScript ecosystem survey analysis is now available! Get your copy here »

fontello-installer

0.0.2 • Public • Published

Fontello CLI

Command line interface to easly integrate/manage Fontello fonts into your application.

Installation

$ npm install fontello-installer

Usage

var fontello = require('fontello-installer');
  fontello.run({
    config:'config.json',
    cssPath:'./src/app/styles/css',
    cssFiles:['animation.css','fontello.css'],
    cssFontPath:'/assets/fonts/',
    fontPath:'./src/app/assets/fonts'
  });

Configurations:

config: (Required)

File path to your config.json, you should specify the path, if file does not exits, system will create empty file for you during the installation.

config.json

cssPath: (Required)

Folder path, where you want to save your CSS files (This path should phycical exits)

'./src/app/styles/css'

cssFiles: (Optional)

Fontello create four differnt files, but most f the time we dont need all of them, provide array of file name need, skiping this option will copy all CC files

['animation.css','fontello.css']

cssFontPath:

Folder path, where you want to save your CSS files (This path should phycical exits)

'/assets/fonts/'

fontPath:

Fontello CSS files include fonts from '../font/' path, provide the diffenr prefix if required to load fonts for your project.

'./src/app/assets/fonts'

install

npm i fontello-installer

Downloadsweekly downloads

83

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability