0.0.0-wip4 • Published 3 years ago

soundsphere v0.0.0-wip4

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

SoundSphere

GitHub release (latest by date) Version Node Version

⚠ The library is W.I.P. and most methods are not yet implemented

A modern SoundCloud API client for Node.js and Deno.

Features

  • ✨ Typed methods (generated via quicktype)
  • ⚡ Targets ES2019 (Node 12+ LTS)

API Implementation Status

  • Users (/users/{user_id}) (all GET methods)
  • Tracks (/tracks/{track_id}) (all GET methods)

Examples

Node.js

import { SoundCloud } from 'soundsphere'

const sc = new SoundCloud({
  id: 'CLIENT_ID',
  secret: 'CLIENT_SECRET'
})
const { id } = await sc.user('uvulauvula')

const json = (await sc.tracks({ user: id }))[1]

console.log(json)

Deno

import { SoundCloud } from 'https://deno.land/x/soundsphere/src/index.ts'

const sc = new SoundCloud({
  id: 'CLIENT_ID',
  secret: 'CLIENT_SECRET'
})
const { id } = await sc.user('uvulauvula')

const json = (await sc.tracks({ user: id }))[1]

console.log(json)