
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@asset-manager/audio
Advanced tools
A singleton for loading and retrieving audio assets used in your application.
This package provides loaders for preloading audio type assets.
This package contains two loaders that return either an audio buffer or base64 string that can be used as a source for the audio library of choice.
Loading and retrieving assets.
import AssetManager from "@asset-manager/core";
import { AudioBufferLoader, AudioBase64Loader } from "@asset-manager/audio";
// Get an instance to the manager and set the loaders
const manager = AssetManager.getInstance();
manager.setLoaders({
audioBuffer: AudioBufferLoader,
audioBase64: AudioBase64Loader,
});
// Set the assets to load
manager.setAssets([
{
id: "bufferName",
url: "static/audio/audioFile.m4a",
type: "audioBuffer",
preload: true,
params: {
audioContext: audio.audioContext,
},
},
{
id: "base64Name",
url: "static/audio/audioFile.m4a",
type: "audioBase64",
preload: true,
},
]);
// Elsewhere in your app you can grab assets from the manager
const buffer =
AssetManager.getInstance().get<AudioBufferLoader>("bufferName").audioBuffer;
const base64String =
AssetManager.getInstance().get<AudioBase64Loader>("base64Name").audioBase64;
Install this package with npm
.
npm i @asset-manager/audio
This package does not include the core loader. You will need to install that separately
npm i @asset-manager/core
FAQs
A singleton for loading and retrieving audio assets used in your application.
The npm package @asset-manager/audio receives a total of 3 weekly downloads. As such, @asset-manager/audio popularity was classified as not popular.
We found that @asset-manager/audio 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.