Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@blad3mak3r/lavaplayer-encoding
Advanced tools
Decode lavaplayer tracks locally, from a Buffer or base64 string.
npm i @blad3mak3r/lavaplayer-encoding
pnpm add @blad3mak3r/lavaplayer-encoding
yarn add @blad3mak3r/lavaplayer-encoding
import { decode } from "@blad3mak3r/lavaplayer-encoding";
const track = "QAAAkwIANFNrcmlsbGV4ICYgSGFic3RyYWt0IC0gQ2hpY2tlbiBTb3VwIFtPZmZpY2lhbCBBdWRpb10ABU9XU0xBAAAAAAADLIAACzIyTVdyV1BWX1FNAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9MjJNV3JXUFZfUU0AB3lvdXR1YmUAAAAAAAAAAA==";
console.log(decode(track));
console.log(decode(new Uint8Array(Buffer.from(track, "base64"))));
Both log
{ flags: 1,
version: 3,
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',
artworkUrl: null,
isrc: null,
source: 'youtube',
position: 0n }
import { encode, decode } from "@blad3mak3r/lavaplayer-encoding";
const track = "QAAAkwIANFNrcmlsbGV4ICYgSGFic3RyYWt0IC0gQ2hpY2tlbiBTb3VwIFtPZmZpY2lhbCBBdWRpb10ABU9XU0xBAAAAAAADLIAACzIyTVdyV1BWX1FNAAEAK2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9MjJNV3JXUFZfUU0AB3lvdXR1YmUAAAAAAAAAAA==";
console.log(encode(decode(track)) === track); // true
FAQs
Encode & decode lavaplayer tracks locally
The npm package @blad3mak3r/lavaplayer-encoding receives a total of 4 weekly downloads. As such, @blad3mak3r/lavaplayer-encoding popularity was classified as not popular.
We found that @blad3mak3r/lavaplayer-encoding demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.