npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

itunes-playlist-converter

v1.1.1

Published

Converts itunes playlists

Downloads

6

Readme

##ITunes Playlist Converter

###NOTE: Does not currently in any way support windows. Coming soon!

Has one optional argument: the input directory path, defaults to current directory. Also takes the following options:

flags/switches

  • "-h, --help" : Prints these switches to the console.
  • "-v, --verbose" : Logs progress.
  • "-t, --type" : Specifies type of playlist output, defaults to 'xspf'.
  • "-m, --musicpath" : Path* to the Music files on the target device. Defaults to itunes path.
  • "-o, --output" : Output path for converted lists. Defaults to input path with 'xml' replace by type.

*Absolute path. Relative paths are not currently supported for music file location.

This program takes an Itunes XML playlist and converts it to a more portable format. Point it at a directory of playlists and watch it do its thing.

If you've stumbled across this and you're not a programmer but you want to convert your playlists, first install node.js. Download and extract the zip of this project. Open a terminal window and navigate to the directory you unzipped this project to. Type 'make all' without the quotes. Watch the terminal spit stuff out at you for a minute or two, and assuming you didn't get a fatal error you're ready to start using the program to convert your lists. If you need help with any of that, google is your friend.

Mac OS X generally stores your music at /Users/YourUserName/Music/iTunes/iTunes Media/Music. If you're looking to move your playlists to another computer/mobile device, there will almost certainly not be that directory structure for where your music files are stored. So you will have to specify the path on the target machine. After that...

###Example

I have a bunch of Itunes music on my macbook that I want to put on my android phone. I plug my phone into my computer and use android file transfer to copy the contents of my Music folder onto my phone's microSD at /SD card/Android/media/Music. So far so good, but I need my playlists that I want to move to my phone to point at that location rather than the itunes folder on my Mac. So assuming that I have my itunes playlists exported as XML files to a folder on my desktop called 'xmls' I use this program to alter them by typing

node converter.js /Users/MyUserName/Desktop/xmls -m /storage/ext_sd/Android/media/Music -v

and hitting return. You'll see the terminal spit out a bunch of stuff and tell you when its finished. Now there should be (unless you got an error message) a folder on your desktop called 'xspfs' that has the modified playlists. You can now copy those playlists over to where your phone's music player expects them to be.

###Formats

This program defaults to the xspf universal playlist format, but suppose your music player on your other device wants m3u? Just modify the example above like so:

node converter.js /Users/MyUserName/Desktop/xmls -m /storage/ext_sd/Android/media/Music -t m3u -v

And you should see the playlists in a folder on your desktop called 'm3us'. Currently those two Formats are the only two supported.