UNPKG

unlazy

Version:

Universal lazy loading library for placeholder images leveraging native browser APIs

87 lines 2.15 kB
{ "name": "unlazy", "type": "module", "version": "1.0.0", "description": "Universal lazy loading library for placeholder images leveraging native browser APIs", "author": "Johann Schopplich <hello@johannschopplich.com>", "license": "MIT", "homepage": "https://unlazy.byjohann.dev", "repository": { "type": "git", "url": "git+https://github.com/johannschopplich/unlazy.git", "directory": "packages/unlazy" }, "bugs": { "url": "https://github.com/johannschopplich/unlazy/issues" }, "keywords": [ "blurhash", "lazy", "loading", "lozad", "placeholder", "responsive", "thumbhash" ], "sideEffects": false, "exports": { ".": { "types": "./dist/index.d.ts", "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }, "default": "./dist/index.mjs" }, "./blurhash": { "types": "./dist/blurhash.d.ts", "import": { "types": "./dist/blurhash.d.mts", "default": "./dist/blurhash.mjs" }, "require": { "types": "./dist/blurhash.d.cts", "default": "./dist/blurhash.cjs" }, "default": "./dist/blurhash.mjs" }, "./thumbhash": { "types": "./dist/thumbhash.d.ts", "import": { "types": "./dist/thumbhash.d.mts", "default": "./dist/thumbhash.mjs" }, "require": { "types": "./dist/thumbhash.d.cts", "default": "./dist/thumbhash.cjs" }, "default": "./dist/thumbhash.mjs" } }, "main": "./dist/index.cjs", "unpkg": "./dist/unlazy.iife.js", "jsdelivr": "./dist/unlazy.iife.js", "types": "./dist/index.d.ts", "typesVersions": { "*": { "*": [ "dist/*" ] } }, "files": [ "dist" ], "dependencies": { "@unlazy/core": "1.0.0" }, "scripts": { "build": "unbuild && vite build -c vite.config.bundle.ts && vite build -c vite.config.bundle.with-hashing.ts", "dev:prepare": "unbuild --stub", "test:types": "tsc --noEmit" } }