Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/spotify

src/exports/skip.ts

13 lines · 440 B · TypeScript
import { skip } from '../lib/spotify-api.ts'
import type { SkipParams } from '../lib/export-types.ts'

/**
 * Skip to the next or previous Spotify track.
 * `direction` is `next` (default) or `previous`. Supports `dryRun: true`.
 * @example
 * import skip from 'kody:@kody/spotify/skip'
 * await skip({ direction: 'next', dryRun: true })
 */
export default async function spotifySkip(params: SkipParams = {}) {
	return await skip(params)
}