1.1.1 • Published 9 years ago

split-tracklist v1.1.1

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

split-tracklist

Build Status

split tracklist text to object contains artist and title of each track

Install

$ npm install split-tracklist --save

Usage

var splitTracklist = require('split-tracklist');
var tracklist = ['artist1 - title1', 'artist2 - title2 [label]'].join('\n');
var tracks = splitTracklist(tracklist);

/*
[
  {
    track: 'artist1 - title1',
    artist: 'artist1',
    title: 'title1'
  },
  {
    track: 'artist2 - title2'
    artist: 'artist2',
    title: 'title2',
    comment: 'label'
  }
]
 */

License

MIT © ewnd9

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago