Coder Social home page Coder Social logo

fontellizr's Introduction

fontellizr

Module to generate fontello webfont from svg set

Install

$ npm i fontellizr

This module targets Node.js 8 or later. If you want support for older browsers use Babel compiler.

Usage

JavaScript API

var fontellizr = require('fontellizr');

fontellizr({
  svgsSourceDir: './source/svgs',
  fontsDestDir: './assets/fonts/fontello',
  stylesDestDir: './assets/styles/vendor',
  fontelloConfig: {
    ascent: 850,
    units_per_em: 1000,
    hinting: true,
    css_use_suffix: false,
    css_prefix_text: 'icon-',
    name: 'fontello'
  }
});

Cli tool

Create .fontellizrrc file in project directory

{
  "svgsSourceDir": "./svgs",
  "fontsDestDir": "./fonts",
  "stylesDestDir": "./styles",
  "fontelloConfig": {
    "ascent": 850,
    "units_per_em": 1000,
    "hinting": true,
    "css_use_suffix": false,
    "css_prefix_text": "icon-",
    "name": "test"
  }
}

Run fontellizr

$ npx fontellizr

License

MIT © Ablay Keldibek

fontellizr's People

Contributors

atomiomi avatar oskarlebuda avatar sdiazserena avatar voidgraphics avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

fontellizr's Issues

Security fixes

This project uses the xmldom package which has a lot of security updates during the years.
I didn't found any call of this lib inside of project - that's so maybe you can delete this package?
image

npm audit report that package as critical one.

package severity version cwe cvss
xmldom critical <=0.6.0 CWE-20, CWE-1288 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
xmldom moderate <0.5.0 CWE-115, CWE-436 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
xmldom moderate <=0.6.0 CWE-116 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

security

Microsoft Windows [Version 10.0.17763.503]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\ae\fontellizr>npm i
added 242 packages from 153 contributors and audited 582 packages in 15.266s
found 2 vulnerabilities (1 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.