
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@armniko/assets
Advanced tools
Javascript/typescript library for fetching, storing and retrieving assets!
Supported formats: jpg, jpeg, png, gif, svg, woff, woff2, ttf, otf
npm install @armniko/assets
import {Assets, AssetsBatch, 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.2.0 |
Option to specify custom asset name. Added font loader. |
| v1.1.0 |
Precompile 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 1 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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.