
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
lrclib-api is a TypeScript-based wrapper for the lrclib.net API, designed to fetch song lyrics and metadata. It supports both plain and synchronized lyrics, providing a simple and efficient way to access lyrics data.
Install the package via npm:
npm install lrclib-api
const { Client } = require("lrclib-api");
const client = new Client();
(async () => {
const query = {
track_name: "The Chain",
artist_name: "Fleetwood Mac",
};
const lyrics = await client.findLyrics(query);
console.log("Metadata:", lyrics);
const unsyncedLyrics = await client.getUnsynced(query);
console.log("Unsynced Lyrics:", unsyncedLyrics);
const syncedLyrics = await client.getSynced(query);
console.log("Synced Lyrics:", syncedLyrics);
})();
import { Client } from "lrclib-api";
const client = new Client();
const query = {
track_name: "The Chain",
artist_name: "Fleetwood Mac",
};
const lyrics = await client.findLyrics(query);
console.log("Metadata:", lyrics);
const unsyncedLyrics = await client.getUnsynced(query);
console.log("Unsynced Lyrics:", unsyncedLyrics);
const syncedLyrics = await client.getSynced(query);
console.log("Synced Lyrics:", syncedLyrics);
findLyrics
Response{
"id": 151738,
"name": "The Chain",
"trackName": "The Chain",
"artistName": "Fleetwood Mac",
"albumName": "Rumours",
"duration": 271,
"instrumental": false,
"plainLyrics": "Listen to the wind blow\nWatch the sun rise...",
"syncedLyrics": "[00:27.93] Listen to the wind blow\n[00:30.88] Watch the sun rise..."
}
[{ "text": "Listen to the wind blow" }, { "text": "Watch the sun rise" }]
[
{ "text": "Listen to the wind blow", "startTime": 27930 },
{ "text": "Watch the sun rise", "startTime": 30880 }
]
To run the test suite:
Clone the repository:
git clone https://github.com/igorwastaken/lrclib-api.git
cd lrclib-api
Install dependencies:
npm install
Run tests:
npm test
Contributions are welcome! Here's how you can help:
git checkout -b my-feature
git commit -m "Add my feature"
git push origin my-feature
This project is licensed under the ISC License.
FAQs
The unofficial lrclib.net library for JS and TS
The npm package lrclib-api receives a total of 46 weekly downloads. As such, lrclib-api popularity was classified as not popular.
We found that lrclib-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.