Skip to content
← Public packages

@kody/spotify

Read a Spotify profile, search the catalog, and manage library, playlists, devices, and playback.

FollowFork

Files

seek.ts

13 lines · 417 B · TypeScript
import { seek } from '../lib/spotify-api.ts'
import type { SeekParams } from '../lib/export-types.ts'

/**
 * Seek to a position in the currently playing Spotify track.
 * Supports `dryRun: true`.
 * @example
 * import spotifySeek from 'kody:@kody/spotify/seek'
 * await spotifySeek({ positionMs: 30000, dryRun: true })
 */
export default async function spotifySeek(params: SeekParams) {
	return await seek(params)
}