0.2.1 • Published 9 years ago

pirate-curl v0.2.1

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

pcurl: get track list as urls from a piratradio station

note: this is the npm version
note: this is a simple package
note: do not expect wonders

install:

  • npm i pirate-curl --save

usage:

var pcurl = require('pirate-curl')

// pcurl(station, opts, callback) or
// pcurl(station, callback)

// opts is an array that decides what output you get. it defaults to 'url' only.
// possible values: 'url', 'title', 'support'
// e.g: pcurl("publicradio", ['url', 'support'], function (error, list) { })

pcurl('publicradio', function (error, list) {
    // yippie!  
})

console.log(list):

[
    { url: "https://www.youtube.com/watch?v=xymjDyGIvQ4" },
    { url: "https://www.youtube.com/watch?v=lFpCJcsFFAc" },
    { url: "https://www.youtube.com/watch?v=LvwBDCb7bmM" }
]

license:
MIT

recommended:

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago