Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fontello-installer with all npm packages installed. Try it out:

var fontelloInstaller = require("fontello-installer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fontello-installer v0.0.2

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

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'

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free