@sequencemedia/music-library
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@sequencemedia/music-library", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Watch Apple Music Library XML and parse to JSON, JS, ES, or M3U", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,10 +0,10 @@ | ||
# @sequencemedia/itunes-library | ||
# @sequencemedia/music-library | ||
Parses an `iTunes Library.xml` file and transforms it to [`m3u`](https://en.wikipedia.org/wiki/M3U) files, JSON, or JavaScript. | ||
Parses an Apple Music `Library.xml` file and transforms it to [`m3u`](https://en.wikipedia.org/wiki/M3U) files, JSON, JavaScript, or EcmaScript. | ||
The command line app can watch for changes to an `iTunes Library.xml` file and write `m3u` files to a destination directory. | ||
The command line app can watch for changes to an Apple Music `Library.xml` file and write `m3u` files to a destination directory. | ||
Or, the component functions can be imported into your own application. | ||
This packages implements [`@sequencemedia/itunes-library-parser`](https://github.com/sequencemedia/itunes-library-parser). | ||
This packages implements [`@sequencemedia/music-library-parser`](https://github.com/sequencemedia/music-library-parser). | ||
@@ -16,3 +16,6 @@ Requires [Java](https://www.oracle.com/java/technologies/javase-downloads.html) and [Saxon PE](https://www.saxonica.com/welcome/welcome.xml). | ||
``` | ||
npm run start -- --jar "/usr/local/bin/saxon/SaxonPE10-0J/saxon-pe-10.0.jar" --xml "~/Music/iTunes/iTunes Library.xml" --destination "~/Documents/iTunes Library" | ||
npm run start -- \ | ||
--jar "/usr/local/bin/saxon/SaxonPE10-6J/saxon-pe-10.6.jar" \ | ||
--xml "~/Music/Music/Library.xml" \ | ||
--destination "~/Documents/Music Library" | ||
``` | ||
@@ -27,8 +30,8 @@ | ||
```javascript | ||
const { toM3U } = require('./lib/library') | ||
const { | ||
import { toM3U } from './src/library/index.mjs' | ||
import { | ||
toJSON, | ||
toJS, | ||
toES | ||
} = require('./lib/library/transform') | ||
} from './src/library/transform/index.mjs' | ||
``` | ||
@@ -41,3 +44,3 @@ | ||
- `jar` - the path to the Saxon binary on your device | ||
- `xml` - the path to the `iTunes Library.xml` file | ||
- `xml` - the path to the Apple Music `Library.xml` file | ||
- `destination` - the path for the `m3u` files to be written | ||
@@ -52,3 +55,3 @@ | ||
- `jar` - the path to the Saxon binary on your device | ||
- `xml` - the path to the `iTunes Library.xml` file | ||
- `xml` - the path to the Apple Music `Library.xml` file | ||
@@ -62,3 +65,3 @@ Returns a `Promise` resolving to a `JSON` string. | ||
- `jar` - the path to the Saxon binary on your device | ||
- `xml` - the path to the `iTunes Library.xml` file | ||
- `xml` - the path to the Apple Music `Library.xml` file | ||
@@ -72,3 +75,3 @@ Returns a `Promise` resolving to a JavaScript object. | ||
- `jar` - the path to the Saxon binary on your device | ||
- `xml` - the path to the `iTunes Library.xml` file | ||
- `xml` - the path to the Apple Music `Library.xml` file | ||
@@ -82,8 +85,8 @@ Returns a `Promise` resolving to a collection of JavaScript `Map` and `Set` instances. | ||
```javascript | ||
const { toM3U } = require('./lib/library/playlists') | ||
const { | ||
import { toM3U } from './src/library/playlists/index.mjs' | ||
import { | ||
toJSON, | ||
toJS, | ||
toES | ||
} = require('./lib/library/playlists/transform') | ||
} from './src/library/playlists/transform/index.mjs' | ||
``` | ||
@@ -98,10 +101,10 @@ | ||
```javascript | ||
const { toM3U } = require('./lib/library/tracks') | ||
const { | ||
import { toM3U } from './src/library/tracks/index.mjs' | ||
import { | ||
toJSON, | ||
toJS, | ||
toES | ||
} = require('./lib/library/tracks/transform') | ||
} from './src/library/tracks/transform/index.mjs' | ||
``` | ||
See **Library**. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23161
103