@brandond/findthelyrics

中文文档
2.0.5发布于 2023/01/21UNLICENSEDTypeScriptES Module近 30 天下载 3180

Find the lyrics of any given song using the power of scraping!

原始使用文档

findthelyrics

NPM package to find lyrics to any given song.

NPMJS Package | Github Repo

Disclaimer

Although the code is not licensed, the lyrics are highly likely to be licensed by the respective record label.

To programmatically check the record label of the song, use Discogs API.

I take no responsibility for the actions used with the code.

How is it done?

It scrapes Genius to find the lyrics.

If the scraper fails on Genius, it falls back to MusixMatch.

Sample Code

This code gets the lyrics of I Just Wanna Shine by Fitz and The Tantrums.

import { find_lyrics } from "@brandond/findthelyrics";

const lyrics = await find_lyrics("Fitz and The Tantrums I Just Wanna Shine");
if (lyrics instanceof Error) {
    console.error(lyrics);
} else {
    console.log(lyrics);
    // [Chorus]
    // I just wanna shine like the sun when it comes up
    // Run the city from the rooftops
    // 'Cause today’s gonna be my day
    // I just wanna climb to the top of a mountain
    // Standing tall when I'm howlin'
    // ...
}

版本与发布记录

@brandond/findthelyrics 共发布 6 个版本,首次发布于 2022/04/02;过去 12 个月发布了 0 个版本。

版本发布日期距今
2.0.5latest2023/01/213 年前
2.0.42023/01/213 年前
2.0.32022/04/024 年前
2.0.22022/04/024 年前
2.0.12022/04/024 年前
2.0.02022/04/024 年前

关于 @brandond/findthelyrics 的常见问题

@brandond/findthelyrics 是什么?

Find the lyrics of any given song using the power of scraping!

如何安装 @brandond/findthelyrics?

在项目目录运行 npm install @brandond/findthelyrics,或使用 pnpm add / yarn add / bun add。

@brandond/findthelyrics 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@brandond/findthelyrics 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@brandond/findthelyrics 可以商用吗?

@brandond/findthelyrics 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@brandond/findthelyrics 的下载量有多少?

根据 npm 官方下载统计,@brandond/findthelyrics 在 2026/10/09 – 2026/11/07 这 30 天内被下载 3,180 次,日均约 106 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@brandond/findthelyrics 还在维护吗?

最新版本 2.0.5 发布于 2023/01/21(3 年前);至今共发布 6 个版本,其中过去 12 个月发布了 0 个;首次发布于 2022/04/02。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。