# smallorange-svg-parser

> [![CircleCI](https://circleci.com/gh/feliperohdee/smallorange-svg-parser.svg?style=svg)](https://circleci.com/gh/feliperohdee/smallorange-svg-parser)

Latest version **1.0.3** (published 2018-05-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install smallorange-svg-parser
pnpm add smallorange-svg-parser
yarn add smallorange-svg-parser
bun add smallorange-svg-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.3 |
| Published | 2018-05-07 |
| First published | 2018-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 44.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | feliperohde |

## Links

- npm: https://www.npmjs.com/package/smallorange-svg-parser
- npm.io page: https://npm.io/package/smallorange-svg-parser

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.5

## Recent versions

- 1.0.3 (latest) — 2018-05-07
- 1.0.2 — 2018-04-06
- 1.0.1 — 2018-04-06
- 1.0.0 — 2018-03-22

## README

[![CircleCI](https://circleci.com/gh/feliperohdee/smallorange-svg-parser.svg?style=svg)](https://circleci.com/gh/feliperohdee/smallorange-svg-parser)

# Small SVG Parser

Simple internal SVG parser

Usage:
		
		const Parser = require('smallorange-svg-parser');
		const parser = new Parser({
			fill: `<%= get('background', 'fill') %>`,
			stroke: `<%= get('background', 'stroke') %>`
		});
		
		console.log(parser.parse(`<svg><path fill="#000"/></svg>`));
		
Output:

		{
			html: `
				<svg viewBox="0 0 49 49">
					<path get('background', 'fill')/>
				</svg>
			`,
			width: 49,
			height: 49
		}

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