UNPKG

icecast-metadata-player

Version:

Simple to use Javascript class that plays an Icecast stream with real-time metadata updates

69 lines (68 loc) 2.63 kB
{ "name": "icecast-metadata-player", "version": "1.17.13", "description": "Simple to use Javascript class that plays an Icecast stream with real-time metadata updates", "keywords": [ "icecast", "shoutcast", "metadata", "icy", "ogg", "media source extensions", "web audio", "html5 audio", "streaming audio" ], "scripts": { "format": "prettier --cache --write \"**/*.*{js,ts}*\"", "update-version": "find ../demo -iname 'icecast-metadata-player*' -exec rm \"{}\" \\; && find ./ ../demo -name '.map' -prune -o -name '.git' -prune -o -name 'node_modules' -prune -o -name 'package-lock.json' -prune -o -name 'build' -prune -o -iname '*.js*' -prune -o -type f -printf '\\n%p:' -exec sed -i \"s/icecast-metadata-player-[0-9]*\\.[0-9]*\\.[0-9]*/icecast-metadata-player-$npm_package_version/g w /dev/fd/2\" \"{}\" \\; && cp ./build/*.js ./build/*.map ../demo/public/", "build": "rm -f ./build/* && webpack && npm run update-version", "build:analyze": "rm -f ./build/* && webpack --profile --json > ./build/stats.json && webpack-bundle-analyzer ./build/stats.json" }, "main": "./build/icecast-metadata-player-1.14.4.min.js", "module": "./src/IcecastMetadataPlayer.js", "types": "./types/icecast-metadata-player.d.ts", "exports": { "script": "./build/icecast-metadata-player-1.14.4.min.js", "module": "./src/IcecastMetadataPlayer.js", "types": "./types/icecast-metadata-player.d.ts", "default": "./src/IcecastMetadataPlayer.js" }, "type": "module", "repository": { "type": "git", "url": "git+https://github.com/eshaz/icecast-metadata-js.git", "directory": "src/icecast-metadata-player" }, "author": { "name": "Ethan Halsall", "email": "ethanhalsall@pm.me" }, "license": "LGPL-3.0-or-later", "bugs": { "url": "https://github.com/eshaz/icecast-metadata-js/issues" }, "homepage": "https://github.com/eshaz/icecast-metadata-js/tree/master/src/icecast-metadata-player", "funding": { "type": "individual", "url": "https://github.com/sponsors/eshaz" }, "devDependencies": { "babel-plugin-syntax-dynamic-import": "^6.18.0", "prettier": "^3.6.2", "terser-webpack-plugin": "^5.3.14", "webpack": "^5.102.0", "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^6.0.1" }, "dependencies": { "@wasm-audio-decoders/flac": "0.2.8", "@wasm-audio-decoders/ogg-vorbis": "0.1.18", "codec-parser": "2.5.0", "icecast-metadata-js": "1.2.9", "mpg123-decoder": "1.0.2", "mse-audio-wrapper": "1.4.15", "opus-decoder": "0.7.10", "synaudio": "0.4.0" } }