Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svgfont2svgicons

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgfont2svgicons - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

1

bin/svgfont2svgicons.js

@@ -10,2 +10,3 @@ #! /usr/bin/env node

var iconProvider = svgfont2svgicons();
var unamedIconCount = 0;

@@ -12,0 +13,0 @@ fontStream.pipe(iconProvider);

2

package.json
{
"name": "svgfont2svgicons",
"version": "0.0.3",
"version": "0.0.4",
"description": "Extract SVG icons from an SVG font",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/nfroidure/svgfont2svgicons",

@@ -35,2 +35,3 @@ /*

, glyph = null
, glyphCount = 0
, d = ''

@@ -86,2 +87,4 @@ ;

glyph.name = tag.attributes['glyph-name'];
} else {
glyph.name = 'icon' + (++glyphCount);
}

@@ -118,2 +121,4 @@ if('horiz-adv-x' in tag.attributes) {

SVGPathData.Transformer.Y_AXIS_SIMETRY, glyph.height
)).pipe(new SVGPathData.Transformer(
SVGPathData.Transformer.TRANSLATE, 0, descent
)).pipe(new SVGPathData.Encoder())

@@ -120,0 +125,0 @@ );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc