0.0.1 • Published 7 years ago

hypem-audio v0.0.1

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

hypem-audio

Scrapes Hype Machine url to get audio stream urls

Install

npm install hypem-audio

Usage

const {getStreamUrls} = require('hypem-audio')

const url = 'http://hypem.com/latest'

getStreamUrls(url)
.then(streamUrls => {
  console.log(streamUrls)

  /*
  ['http://api.soundcloud.com/tracks/325088081/stream?consumer_key=nH8p0jYOkoVEZgJukRlG6w',
    ...
  ]
  */
})
.catch(error => {
  console.error(error)
})

Test

npm test

NOTE: this module will most likely break in the future when Hype Machine updates their audio endpoints.

License

MIT