UNPKG

taglib-wasm

Version:

TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps

172 lines (171 loc) 5.67 kB
{ "name": "taglib-wasm", "version": "1.6.1", "description": "TagLib-Wasm is the universal tagging library for TypeScript/JavaScript platforms: Browsers, Node.js, Deno, Bun, Cloudflare Workers, and Electron apps", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "browser": "./dist/index.browser.js", "exports": { ".": { "browser": { "types": "./dist/index.browser.d.ts", "default": "./dist/index.browser.js" }, "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./simple": { "browser": { "types": "./dist/simple.browser.d.ts", "default": "./dist/simple.browser.js" }, "default": { "types": "./dist/simple.d.ts", "default": "./dist/simple.js" } }, "./folder": { "types": "./dist/folder.d.ts", "default": "./dist/folder.js" }, "./web": { "types": "./dist/web.d.ts", "default": "./dist/web.js" }, "./rating": { "types": "./dist/rating.d.ts", "default": "./dist/rating.js" } }, "typesVersions": { "*": { "simple": [ "dist/simple.d.ts" ], "folder": [ "dist/folder.d.ts" ], "web": [ "dist/web.d.ts" ], "rating": [ "dist/rating.d.ts" ] } }, "files": [ "dist/**/*", "!dist/poc", "!dist/deno-compile", "index.ts", "index.browser.ts", "simple.ts", "simple.browser.ts", "folder.ts", "web.ts", "rating.ts", "src/**/*.ts", "!src/**/*.test.ts", "README.md", "AGENTS.md", "LICENSE" ], "scripts": { "build:wasm": "npm run build:wasm:emscripten && npm run build:wasm:wasi", "build:wasm:emscripten": "./build/build-wasm.sh", "build:wasm:wasi": "./build/build-wasi.sh", "build:ts": "tsc && deno run --allow-read --allow-write --allow-run --allow-env scripts/build-js.mjs", "postbuild": "deno run --allow-read --allow-write --allow-run --allow-env scripts/postbuild.mjs", "build:copy-wasm": "mkdir -p dist && cp build/taglib-web.wasm build/taglib-wasi.wasm build/taglib-wrapper.js build/taglib-wrapper.d.ts dist/", "build:clean": "mkdir -p dist && find dist -mindepth 1 -maxdepth 1 ! -name wasi -exec rm -rf {} +", "build": "npm run build:clean && npm run build:wasm:emscripten && npm run build:copy-wasm && npm run build:ts && npm run postbuild", "test": "deno test --allow-read --allow-write --allow-env tests/", "test:all": "deno test --allow-read --allow-write --allow-env tests/index.test.ts", "test:core": "deno test --allow-read --allow-write --allow-env tests/taglib.test.ts", "test:pictures": "deno test --allow-read --allow-write --allow-env tests/picture-api.test.ts", "test:edge": "deno test --allow-read --allow-write --allow-env tests/edge-cases.test.ts", "test:errors": "deno test --allow-read --allow-write --allow-env tests/error-handling.test.ts", "test:memory": "deno test --allow-read --allow-write --allow-env tests/memory.test.ts", "test:extended": "deno test --allow-read --allow-write --allow-env tests/extended-metadata.test.ts", "test:multi-runtime": "./tests/test-runtimes.sh", "test:bun": "bun test tests/bun-integration.test.ts", "test:node": "tsx --test tests/index.test.ts", "test:watch": "deno test --allow-read --allow-write --allow-env --watch tests/", "test:coverage": "deno test --allow-read --allow-write --allow-env --coverage=coverage tests/ && deno coverage coverage", "test:coverage:lcov": "deno test --allow-read --allow-write --allow-env --coverage=coverage tests/ && deno coverage coverage --lcov --output=coverage/lcov.info", "test:local": "./scripts/test-local-package.sh", "test:deno-quick": "./scripts/quick-deno-test.ts", "test:deno-imports": "./scripts/test-deno-imports.sh", "test:amusic": "./scripts/test-with-amusic.sh", "test:package": "./scripts/test-npm-package.sh", "docs:dev": "cd docs && npm install && npm run dev", "docs:build": "cd docs && npm install && npm run build", "update-taglib": "./scripts/update-taglib.sh", "release": "./scripts/release-safe.sh", "release:quick": "./scripts/release.sh", "publish:npm": "echo 'Use GitHub Actions workflow for publishing'", "publish:github": "echo 'Use GitHub Actions workflow for publishing'", "lint:ts": "eslint .", "lint:ts:time": "time eslint ." }, "engines": { "node": ">=24.0.0" }, "keywords": [ "taglib", "webassembly", "wasm", "metadata", "mp3", "mp4", "flac", "audio", "typescript", "bun", "deno", "node", "browser", "cloudflare", "workers", "electron", "replaygain", "musicbrainz", "acoustid" ], "author": "Charles Wiltgen <cwiltgen@gmail.com>", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/CharlesWiltgen/TagLib-Wasm.git" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "bugs": { "url": "https://github.com/CharlesWiltgen/TagLib-Wasm/issues" }, "homepage": "https://github.com/CharlesWiltgen/TagLib-Wasm#readme", "dependencies": { "@msgpack/msgpack": "^3.1.3" }, "devDependencies": { "@types/node": "^24.13.3", "esbuild": "^0.28.0", "eslint": "^10.4.1", "fast-check": "^4.8.0", "tsx": "^4.22.4", "typescript": "^6.0.3", "typescript-eslint": "^8.60.1" }, "peerDependencies": { "typescript": ">=4.5.0" }, "peerDependenciesMeta": { "typescript": { "optional": true } } }