
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@lavalink/encoding
Advanced tools
Decode lavaplayer tracks locally, from a Buffer or base64 string.
npm i @lavalink/encoding
import { decode } from "@lavalink/encoding";
const track = "QAAAkwIANFNrcmlsbGV4ICYgSGFic3RyYWt0IC0gQ2hpY2tlbiBTb3VwIFtPZmZpY2lhbCBBdWRpb10ABU9XU0xBAAAAAAADLIAACzIyTVdyV1BWX1FNAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9MjJNV3JXUFZfUU0AB3lvdXR1YmUAAAAAAAAAAA==";
console.log(decode(track));
console.log(decode(new Uint8Array(Buffer.from(track, "base64"))));
Both log
{ flags: 1,
version: 2,
title: 'Skrillex & Habstrakt - Chicken Soup [Official Audio]',
author: 'OWSLA',
length: 208000n,
identifier: '22MWrWPV_QM',
isStream: false,
uri: 'https://www.youtube.com/watch?v=22MWrWPV_QM',
source: 'youtube',
position: 0n }
import { encode, decode } from "@lavalink/encoding";
const track = "QAAAkwIANFNrcmlsbGV4ICYgSGFic3RyYWt0IC0gQ2hpY2tlbiBTb3VwIFtPZmZpY2lhbCBBdWRpb10ABU9XU0xBAAAAAAADLIAACzIyTVdyV1BWX1FNAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9MjJNV3JXUFZfUU0AB3lvdXR1YmUAAAAAAAAAAA==";
console.log(encode(decode(track)) === track); // true
FAQs
Decode lavaplayer tracks locally
The npm package @lavalink/encoding receives a total of 7 weekly downloads. As such, @lavalink/encoding popularity was classified as not popular.
We found that @lavalink/encoding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.