@armniko/assets
Advanced tools
+14
-9
| { | ||
| "name": "@armniko/assets", | ||
| "version": "1.4.0", | ||
| "description": "Javascript/typescript library for fetching, storing and retrieving assets!", | ||
| "version": "1.4.1", | ||
| "description": "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.", | ||
| "author": "Armīns Nikolajevs <armins.nikolajevs@gmail.com>", | ||
@@ -11,12 +11,17 @@ "license": "MIT", | ||
| "keywords": [ | ||
| "assets", | ||
| "loader", | ||
| "fetcher", | ||
| "concurrent", | ||
| "asset-loader", | ||
| "asset-manager", | ||
| "resource-loader", | ||
| "asset-fetching", | ||
| "runtime-cache", | ||
| "preload", | ||
| "lazy-loading", | ||
| "concurrency", | ||
| "batching", | ||
| "async", | ||
| "fonts", | ||
| "font-loading", | ||
| "font-face", | ||
| "canvas", | ||
| "images", | ||
| "audio", | ||
| "json" | ||
| "typescript" | ||
| ], | ||
@@ -23,0 +28,0 @@ "main": "./dist/index.umd.js", |
+26
-16
@@ -1,17 +0,21 @@ | ||
| <h1 align="center">Assets</h1> | ||
| <p align="center"> | ||
| <a href="https://gitlab.com/Armniko/game-core/assets/-/releases"><img alt="Latest Release" src="https://gitlab.com/Armniko/game-core/assets/-/badges/release.svg" /></a> | ||
| <a href="https://gitlab.com/Armniko/game-core/assets/-/commits/prod"><img alt="pipeline status" src="https://gitlab.com/Armniko/game-core/assets/badges/prod/pipeline.svg" /></a> | ||
| <a href="https://gitlab.com/Armniko/game-core/assets/-/commits/prod"><img alt="coverage report" src="https://gitlab.com/Armniko/game-core/assets/badges/prod/coverage.svg" /></a> | ||
| </p> | ||
| <p align="center"> | ||
| Javascript/typescript library for fetching, storing and retrieving assets!<br> | ||
| Supported font formats: woff, woff2, ttf, otf<br> | ||
| Supported image formats: png, webp, jpg, jpeg, svg, gif<br> | ||
| Supported audio formats: webm, mp3, ogg, m4a, aac, wav<br> | ||
| Supported data formats: json<br> | ||
| </p> | ||
| # Assets | ||
| [](https://www.npmjs.com/package/@armniko/assets) | ||
|  | ||
|  | ||
| [](https://www.npmjs.com/package/@armniko/assets) | ||
| 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:** | ||
| * fonts: `woff`, `woff2`, `ttf`, `otf` (downloaded fonts are automatically registered in the browser, making them | ||
| immediately available for canvas and dynamic text rendering) | ||
| * images: `png`, `webp`, `jpg`, `jpeg`, `svg`, `gif` | ||
| * audio: `webm`, `mp3`, `ogg`, `m4a`, `aac`, `wav` | ||
| * data: `json` | ||
| <hr> | ||
| ## Installation | ||
| ### Installation | ||
@@ -22,3 +26,3 @@ ``` | ||
| ## Usage | ||
| ### Usage | ||
@@ -48,6 +52,12 @@ ```typescript | ||
| ## Changelog | ||
| ### Changelog | ||
| <table> | ||
| <tr> | ||
| <td>v1.4.1</td> | ||
| <td> | ||
| Update readme. | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td>v1.4.0</td> | ||
@@ -54,0 +64,0 @@ <td> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19357
1.61%95
11.76%11
-8.33%