Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

soundcloud.ts

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

soundcloud.ts - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "soundcloud.ts",
"version": "0.0.7",
"version": "0.0.8",
"description": "Wrapper for the Soundcloud API with typings",

@@ -5,0 +5,0 @@ "main": "dist/soundcloud.js",

@@ -12,3 +12,3 @@ <div align="left">

This is a wrapper for the Soundcloud API that includes typings and various utility functions
to make getting tracks, users, and playlists easier!
to make getting tracks, users, and playlists easier! You can also download single tracks, or download tracks in mass programmatically.

@@ -42,2 +42,5 @@ ### Insall

const track = await soundcloud.tracks.get("https://soundcloud.com/tenpimusic/snowflake")
/*Worth to mention that you can omit the soundcloud.com part.*/
const trackShorthand = await soundcloud.tracks.get("tenpimusic/snowflake")

@@ -55,3 +58,3 @@ /*To get the ID with the url of a track/playlist/user, you can use the resolve endpoint.*/

and only works with your own tracks.*/
const secretToken = await soundcloud.tracks.secretToken("https://soundcloud.com/tenpimusic/kudasai")
const secretToken = await soundcloud.tracks.secretToken("tenpimusic/kudasai")

@@ -67,18 +70,18 @@ /*Playlists are largely the same, you can use the get() and search() methods.*/

/*Users also have a get() and search() method.*/
const user = await soundcloud.users.get("https://soundcloud.com/tenpimusic")
const user = await soundcloud.users.get("tenpimusic")
const userSearch = await soundcloud.users.search({q: "some user"})
/*You can get the followers and following of a user.*/
const following = await soundcloud.users.following("https://soundcloud.com/tenpimusic")
const followers = await soundcloud.users.followers("https://soundcloud.com/tenpimusic")
const following = await soundcloud.users.following("tenpimusic")
const followers = await soundcloud.users.followers("tenpimusic")
/*Favorite tracks too.*/
const favorites = await soundcloud.users.favorites("https://soundcloud.com/tenpimusic")
const favorites = await soundcloud.users.favorites("tenpimusic")
/*The web profiles are the social links that show on the side of a user's profile*/
const socialLinks = await soundcloud.users.webProfiles("https://soundcloud.com/tenpimusic")
const socialLinks = await soundcloud.users.webProfiles("tenpimusic")
/*It's very easy to get all of the comments on a track, or all of the comments by a user.*/
const userComments = await soundcloud.users.comments("https://soundcloud.com/tenpimusic")
const trackComments = await soundcloud.tracks.comments("https://soundcloud.com/tenpimusic/moonlight")
const userComments = await soundcloud.users.comments("tenpimusic")
const trackComments = await soundcloud.tracks.comments("tenpimusic/moonlight")

@@ -93,3 +96,3 @@ /*And you can get a specific comment from its ID (must make an API call to get it).*/

/*If downloads aren't enabled, it will download the stream instead of the original file.*/
await soundcloud.util.downloadTrack("https://soundcloud.com/tenpimusic/snowflake", "./tracks")
await soundcloud.util.downloadTrack("tenpimusic/snowflake", "./tracks")

@@ -96,0 +99,0 @@ /*You can download multiple tracks by passing them as an array to downloadTracks(). The third

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc