Converts any icon-font (Font Awesome etc) into individual SVG files for each icon.
Last updated a year ago by gurupras .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @gurupras/font-blast 
SYNC missed versions from official npm registry.

What is this

This is a clone of eugene1g's font-blast with minor changes (de-optimizations) to support @gurupras/svg-file-icons.

Icon Fonts are cool - Font Awesome/Foundation/Fontello/etc all have great-looking and well thought out icons. font-blast can extract those cool icons from the font file, and create individual SVG/PNG files for every one of them.


  • Use cool icons outside of web pages. If you have individual icons as SVGs, you can import them into Sketch, Illustrator, PowerPoint, or any other app to use for visual mockups/presentations.
  • Modify & repackage icons. It's easy to change an individual SVG file, then repackage all images back into an icon-font (with e.g. Font Squirrel)
  • Get high quality PNGs. Generate high-res PNGs with a transparent backgrounds to use in native applications, emails, etc.


Font-blast does not require PhantomJS or any other native binaries, so it should work pretty much everywhere.

Note: PNG images are generated with the embedded batik-rasterizer, and you will need have java installed to do that. Evil Java is not required for generating SVG files.

$ npm install font-blast

CLI usage

You can generate icons from the command line by called the script with two parameters: the SVG file of the font, and the directory where inidivual icons should be placed -


$ wget https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/fonts/fontawesome-webfont.svg
$ bin/font-blast.js fontawesome-webfont.svg fa-icons/


var fontBlast = require('font-blast');
fontBlast('font-awesome.svg', 'fa-icons');

Better Usage

Smarter filenames

Just using the SVG file it is impossible to tell what the icon represents. Most icon-fonts have a mapping table which gives a human-friendly name to each unicode symbol. See https://github.com/eugene1g/font-blast-examples

Current Tags

  • 0.7.3                                ...           latest (a year ago)

4 Versions

  • 0.7.3                                ...           a year ago
  • 0.7.2                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
Maintainers (1)
Today 4
This Week 4
This Month 5
Last Day 0
Last Week 0
Last Month 3
Dependencies (6)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |