
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
@armniko/assets
Advanced tools
A tiny, zero-dependency JavaScript/TypeScript library for fetching and managing assets with in-memory caching and automatic font registration for canvas and dynamic text rendering.
A tiny, zero-dependency JavaScript/TypeScript library for fetching and managing assets with in-memory caching and automatic font registration for canvas and dynamic text rendering.
Supported formats:
woff, woff2, ttf, otf (downloaded fonts are automatically registered in the browser, making them
immediately available for canvas and dynamic text rendering)png, webp, jpg, jpeg, svg, gifwebm, mp3, ogg, m4a, aac, wavjsonnpm install @armniko/assets
import {Assets, AssetsBatch, type Progress} from '@armniko/assets';
const assetsBatch: AssetsBatch = new AssetsBatch({
assets: [
'url/to/asset-1.png', // access loaded asset: assets.image('asset-1')
{asset2: 'url/to/asset-2.jpg'}, // access loaded asset: assets.image('asset2')
],
onLoad: (name: string, progress: Progress): void => {
console.log(`Loaded ${name}: ${progress.percents()}%`);
},
onComplete: (): void => {
console.log('Done!');
},
onError: (url: string, error: Error): void => {
console.log(url, error);
}
});
const assets: Assets = new Assets();
assets.fetch(assetsBatch);
| v1.5.0 |
Removed minification of build. Added exports field for proper module resolution and types.Marked package as side-effect free. |
| v1.4.1 | Updated readme. |
| v1.4.0 |
Added JSON loader. Added asset() method to get assets without knowing type. |
| v1.3.0 |
Added audio loader. Added webp format. Migrated from webpack to vite. |
| v1.2.0 |
Option to specify custom asset name. Added font loader. |
| v1.1.0 | Precompiled UMD and ESM. |
| v1.0.0 | Initial version. |
FAQs
A tiny, zero-dependency JavaScript/TypeScript library for fetching and managing assets with in-memory caching and automatic font registration for canvas and dynamic text rendering.
The npm package @armniko/assets receives a total of 30 weekly downloads. As such, @armniko/assets popularity was classified as not popular.
We found that @armniko/assets 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.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.