Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

A library for interacting with lrclib.net API


npm i @lrclib.js/api-types

Usage

import { type APIOptions, type APIResponse, Routes } from '@lrclib.js/api-types';

const options: APIOptions.Get.Search = {
    q: 'Afterglow Taylor Swift'
};

const response: APIResponse.Get.SearchQuery = await fetch(
    Routes[`/api/search`](options)
).then(res => res.json());