# svg-font-parser

> SVG font parser

Latest version **1.0.0** (published 2015-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install svg-font-parser
pnpm add svg-font-parser
yarn add svg-font-parser
bun add svg-font-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-08-13 |
| First published | 2015-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+16 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andy Jansson |
| Maintainers | andyjansson |
| Keywords | svg, font, parser |

## Links

- npm: https://www.npmjs.com/package/svg-font-parser
- Repository: https://github.com/andyjansson/svg-font-parser
- Homepage: https://github.com/andyjansson/svg-font-parser#readme
- Issues: https://github.com/andyjansson/svg-font-parser/issues
- npm.io page: https://npm.io/package/svg-font-parser

## Dependencies (2)

- [xmldom](https://npm.io/package/xmldom.md) ^0.1.19
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.0.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-08-13

## README

# svg-font-parser [![Build Status][ci-img]][ci]

SVG font parser

[ci-img]:  https://travis-ci.org/andyjansson/svg-font-parser.svg
[ci]:      https://travis-ci.org/andyjansson/svg-font-parser

## Installation

```js
npm install svg-font-parser
```

## Usage 

```js
var fs = require('fs');
var parser = require('svg-font-parser');

fs.readFile('font.svg', function (err, contents) {
	if (err) throw err;
	parser(contents).then(function (result) {
		console.log(result);
	});
});
```

Outputs:

```json
[
	{
		...
		"family": "SourceSansPro-Regular",
		"weight": ["400"],
		"stretch": ["normal"],
		...
	}
	...
]
```

---
_Source: https://npm.io/package/svg-font-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
