soundsphere

0.0.0-wip4 • Public • Published

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

  • [x] Users (/users/{user_id}) (all GET methods)
  • [x] 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)

Package Sidebar

Install

npm i soundsphere

Weekly Downloads

2

Version

0.0.0-wip4

License

MIT

Unpacked Size

38.5 kB

Total Files

6

Last publish

Collaborators

  • dropthebeatbro