This package has been deprecated

Author message:

Package no longer supported. Please use @tidal-music/api instead

@tidal-music/search
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

TIDAL Search v2 Beta

A thin wrapper around the API described at: https://developer.tidal.com/reference/web-api?spec=search-v2&ref=get-searchresults-v2 (which is again built on the JSON API spec: https://jsonapi.org/format/)

The module provides Typescript types and a fetch based function for getting data, using: https://openapi-ts.pages.dev/

Usage

One function is exposed that can be used for creating a function that can then do network calls: createSearchClient. Also the API types are exposed and can be used directly.

Example

See the examples/ folder for some ways it can be used.

To run it do: pnpm dev

Development

Run pnpm generateTypes to regenerate the types from the API specs.

Readme

Keywords

none

Package Sidebar

Install

npm i @tidal-music/search

Weekly Downloads

2

Version

0.4.0

License

Apache-2.0

Unpacked Size

133 kB

Total Files

5

Last publish

Collaborators

  • goatherder
  • jarackal
  • osmestad
  • mathias.maier