# xspfr

> Node based XSPF parser

Latest version **0.3.1** (published 2014-04-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install xspfr
pnpm add xspfr
yarn add xspfr
bun add xspfr
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2014-04-05 |
| First published | 2014-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Adam Campbell |
| Maintainers | hotmeteor |
| Keywords | xspf, parser |

## Links

- npm: https://www.npmjs.com/package/xspfr
- Repository: https://github.com/hotmeteor/xspfr
- Issues: https://github.com/hotmeteor/xspfr/issues
- npm.io page: https://npm.io/package/xspfr

## Dependencies (2)

- [xml2js](https://npm.io/package/xml2js.md) ~0.4.2
- [underscore](https://npm.io/package/underscore.md) ~1.6.0

## 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

- 0.3.1 (latest) — 2014-04-05
- 0.3.0 — 2014-03-29
- 0.2.0 — 2014-03-08
- 0.1.1 — 2014-03-08
- 0.1.0 — 2014-03-06

## README

XSPFr
=====

A Node based XSPF parser that returns a JSON array of tracks from an XSPF playlist.

For more information on XSPF playlists see: http://www.xspf.org/

# Installation

````
npm install xspfr
````

# Usage

````
var xspfr = require('xspfr');

... make request for XSPF file ...

xspfr(myXspfFile, function(err, result){

	if (err) {
		console.log(err);
		return;
	}

	console.log(result);

})
````

`result` returns an array of objects filled with the track data.

`err` returns the XML parsing error.

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