0.1.22 • Published 3 years ago

@sequencemedia/itunes-library-parser v0.1.22

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@sequencemedia/itunes-library-parser

JavaScript functions and XSL stylesheets to parse an iTunes Library.xml file and transform it to m3u files, JSON, or JavaScript.

Requires Java and Saxon PE.

Library

Transforms the entire library.

const { toM3U } = require('./lib/js/library')
const {
  toJSON,
  toJS,
  toES
 } = require('./lib/js/library/transform')

toM3U

Requires the arguments jar, xml, and destination.

  • jar - the path to the Saxon binary on your device
  • xml - the path to the iTunes Library.xml file
  • destination - the path for the m3u files to be written

Returns a Promise resolving when all m3u files are written.

toJSON

Requires the arguments jar, and xml.

  • jar - the path to the Saxon binary on your device
  • xml - the path to the iTunes Library.xml file

Returns a Promise resolving to a JSON string.

toJS

Requires the arguments jar, and xml.

  • jar - the path to the Saxon binary on your device
  • xml - the path to the iTunes Library.xml file

Returns a Promise resolving to a JavaScript object.

toES

Requires the arguments jar, and xml.

  • jar - the path to the Saxon binary on your device
  • xml - the path to the iTunes Library.xml file

Returns a Promise resolving to a collection of JavaScript Map and Set instances.

Playlists

Transforms the playlists.

const { toM3U } = require('./lib/js/library/playlists')
const {
  toJSON,
  toJS,
  toES
 } = require('./lib/js/library/playlists/transform')

See Library.

Tracks

Transforms the tracks.

const { toM3U } = require('./lib/js/library/tracks')
const {
  toJSON,
  toJS,
  toES
 } = require('./lib/js/library/tracks/transform')

See Library.

0.1.21

3 years ago

0.1.22

3 years ago

0.1.18

3 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago