{"_id":"@arno500/prism-media","_rev":"1-542e43b8014ecf54399d3d2df4e5f55f","name":"@arno500/prism-media","dist-tags":{"latest":"2.0.0-alpha.1"},"versions":{"2.0.0-alpha.0":{"name":"@arno500/prism-media","version":"2.0.0-alpha.0","description":"Easy-to-use stream-based media transcoding","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest test/","lint":"eslint src --ext .ts","lint:fix":"eslint src --ext .ts --fix","prettier":"prettier --write **/*.{ts,js,json,yml,yaml}","build":"tsc","build:check":"tsc --noEmit --incremental false"},"repository":{"type":"git","url":"git+https://github.com/amishshah/prism-media.git"},"keywords":["audio","media","ffmpeg","opus","pcm","webm","ogg"],"author":{"name":"Amish Shah","email":"amish@shah.gg"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amishshah/prism-media/issues"},"homepage":"https://github.com/amishshah/prism-media#readme","devDependencies":{"@commitlint/cli":"^12.1.4","@commitlint/config-angular":"^12.1.4","@types/jest":"^26.0.23","@types/node":"^15.12.2","@typescript-eslint/eslint-plugin":"^4.26.1","@typescript-eslint/parser":"^4.26.1","eslint":"^7.28.0","eslint-config-marine":"^9.0.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","husky":"^5.1.3","jest":"^27.0.4","lint-staged":"^11.0.0","prettier":"^2.3.1","ts-jest":"^27.0.3","typescript":"^4.2.3"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"jest":{"preset":"ts-jest","testEnvironment":"node"},"lint-staged":{"*.{mjs,js,ts}":["eslint --ext .ts --fix"],"*.{json,yml,yaml}":["prettier --write"]},"commitlint":{"extends":["@commitlint/config-angular"],"rules":{"type-enum":[2,"always",["chore","build","ci","docs","feat","fix","perf","refactor","revert","style","test","types","wip"]],"scope-case":[1,"always","pascal-case"]}},"dependencies":{"duplex-child-process":"^1.0.1"},"peerDependencies":{"polycrc":"^1.1.0"},"gitHead":"b1111987da49cc20b24617b6f8d3c31654b435b6","_id":"@arno500/prism-media@2.0.0-alpha.0","_nodeVersion":"17.7.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-4lZ8eGX/qXb1l/ahMKdkdny22FCYTOyEw32vVrxmNGKCzTKyM7tANa8xyHdO8qs03cuKQEhAe6JuuvuZnjldgQ==","shasum":"8ade8d46e048862acdcd08c9196a0dd76e683d00","tarball":"https://registry.npmjs.org/@arno500/prism-media/-/prism-media-2.0.0-alpha.0.tgz","fileCount":76,"unpackedSize":160607,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwY80dXR4yI5ywQzYt6mXyS4z/9YXGGxwEavDpYwfpOgIgch2jsqerJJLA71N+bZLpHWmFVGbTAHeicJrl5wPaano="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSfl5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrv6Q/+K8IOljG0rTv+CDPUwPGZG+PSZESGvJNTy8NmS7yhFx5S8qwO\r\nwWdCbYa39hSpstt47j6kL+XsCcHSgoIMxtbd00pAz9MJir59BnI4ue7utGrG\r\n/vUPmrSNCsXOgZVy4kxAJCqtbDUSTYTK2M2F7jsWONj7nHa7+dhXpbvpp7TW\r\n9hZPqs8TZGsGQa2zpDnZFY9Q8Hj6vAYH+xNZoqCPujOmVYpb4EyBGgdQida6\r\nIaldQpvke7PalsE2/z2V3SFHjg7O8Y8imHryqCBvDob1gyFQrAirlnuZH+uE\r\nY2bRxEf8tjDfP/6D8GTfvyrddPyMDTTYp34wV/ZOFpNnvvc/kSGTGTNxCFgi\r\nVsq22wyNAsn462rtVBLjBYYfPSKItWiicr9MaehJpOZLGVLYoJAkvhyY6vlq\r\nmknUre/YlXKnxv2wngY/iOQre1QP4TyAd0Bf/O/VJqBk7L9NQSXj8cXe98Is\r\ntcpSlpHCX8KLZpM3yJTmGlmmAJlLPgrMfWDzqroaYMEkWzo7npPR8PyeTtoZ\r\nSfps/LYYjwhEJkEEoYctiIpv+1W8XWoQuUsbeMuVTBL9zR5SEx1AwUJLWWJB\r\nAl5Qg96kodXUeF9k7OO3oCNaVzTzocqYnPzRopXmc/gCfmKGauaOakaxOmzY\r\ns1FknSMME77uHJvyDujXyO1PoFzs9xBCjpw=\r\n=4THg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arno500","email":"arno.du@orange.fr"},"directories":{},"maintainers":[{"name":"arno500","email":"arno.du@orange.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prism-media_2.0.0-alpha.0_1649015161436_0.08501976391512245"},"_hasShrinkwrap":false},"2.0.0-alpha.1":{"name":"@arno500/prism-media","version":"2.0.0-alpha.1","description":"Easy-to-use stream-based media transcoding","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest test/","lint":"eslint src --ext .ts","lint:fix":"eslint src --ext .ts --fix","prettier":"prettier --write **/*.{ts,js,json,yml,yaml}","build":"tsc","build:check":"tsc --noEmit --incremental false"},"repository":{"type":"git","url":"git+https://github.com/amishshah/prism-media.git"},"keywords":["audio","media","ffmpeg","opus","pcm","webm","ogg"],"author":{"name":"Amish Shah","email":"amish@shah.gg"},"license":"Apache-2.0","bugs":{"url":"https://github.com/amishshah/prism-media/issues"},"homepage":"https://github.com/amishshah/prism-media#readme","devDependencies":{"@commitlint/cli":"^12.1.4","@commitlint/config-angular":"^12.1.4","@types/jest":"^26.0.23","@types/node":"^15.12.2","@typescript-eslint/eslint-plugin":"^4.26.1","@typescript-eslint/parser":"^4.26.1","eslint":"^7.28.0","eslint-config-marine":"^9.0.6","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","husky":"^5.1.3","jest":"^27.0.4","lint-staged":"^11.0.0","prettier":"^2.3.1","ts-jest":"^27.0.3","typescript":"^4.2.3"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"jest":{"preset":"ts-jest","testEnvironment":"node"},"lint-staged":{"*.{mjs,js,ts}":["eslint --ext .ts --fix"],"*.{json,yml,yaml}":["prettier --write"]},"commitlint":{"extends":["@commitlint/config-angular"],"rules":{"type-enum":[2,"always",["chore","build","ci","docs","feat","fix","perf","refactor","revert","style","test","types","wip"]],"scope-case":[1,"always","pascal-case"]}},"dependencies":{"duplex-child-process":"^1.0.1","polycrc":"^1.1.0"},"gitHead":"59194e8514e10adf3814631d2910e21e05a381ce","_id":"@arno500/prism-media@2.0.0-alpha.1","_nodeVersion":"17.7.1","_npmVersion":"8.3.0","dist":{"integrity":"sha512-8sXFMofw44akDXtLhyGCQinCu969FIQ6duOe29P6DqL1PhXzAwU0cUOcA7XRsq7Emt3Ce2APxwk5Nm95hKtoXA==","shasum":"8ea69c6530ce26a206827ebdb678012549778445","tarball":"https://registry.npmjs.org/@arno500/prism-media/-/prism-media-2.0.0-alpha.1.tgz","fileCount":76,"unpackedSize":160579,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHccWOOGJZmdbZ3ulrBqOjurqkhBIho04VyjrPB2hvptAiEA+ezg/vmtdEsetiTMlleJHnFfdJYmpksjCBFBySdS7tM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiSfoTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8jw//W7DfBiVD8MTu/MApx6zFEMc6Tytfu40jHYG0BZF7O5XPGWAq\r\n1XmPcdqA8ofp6fDMzPzgak5RPZcRIXYBNK3lGqKqnb2Qnmmbc4ahW1MIOREf\r\nUSSEQT3B0ETpiSHHDNt8d49S+M++/StqP2Ow9qe8Qo+l5Mao440fBRMhvZcZ\r\nHHE6fEc/8+TKXxjIFvlFj2AAmQvhBrMch2pzQzjfl2lx5tQO1MnyMkV2I57Y\r\n+MS6v7maN8NTh9Y34xeKlUnGps7goCcYiD0+cLjE3PKmmM0LqqrpcA2TbAq8\r\nRi6kJotF2zXoVZy3Cnt6OlP3s7UHvSQGF5ysYDQfvOyVPJE6GXtGPkQSawmP\r\ny2Ru8axgUYb2rrNdRg5XqGsw0S9HWIFN0ft5Hb/wb4TCsCm9SZn6pvgUp0fh\r\nOx4b7ZuUPA9RA1ZPGIDcwzu8UG7WhSwl+FkX2fWhQQQOaSk/c485XLoBRA1b\r\nGnDl0LGVip5DqHuw6dB65D9CTo14L0J6U5NAWTF4F+FqKGOmC3M37bvHDRpQ\r\nfq/zQmIVhuW+uZPMSn6OazTy/wmSorO4nZTw6cK/IQHE6o8ZpcU+lfjseWEj\r\nw2KKDDmYruIGr9KVPq1r0Wq+GD/IesqUOKbMNV1SKH4bZAPysQ+J5pVfqaii\r\nL+rX2tMjaETGkdRuG3hxmME4rSUSfDoqk4o=\r\n=MM/a\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arno500","email":"arno.du@orange.fr"},"directories":{},"maintainers":[{"name":"arno500","email":"arno.du@orange.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prism-media_2.0.0-alpha.1_1649015315524_0.5613042602840086"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-03T19:46:01.387Z","2.0.0-alpha.0":"2022-04-03T19:46:01.619Z","modified":"2022-04-03T19:48:35.799Z","2.0.0-alpha.1":"2022-04-03T19:48:35.723Z"},"maintainers":[{"name":"arno500","email":"arno.du@orange.fr"}],"description":"Easy-to-use stream-based media transcoding","homepage":"https://github.com/amishshah/prism-media#readme","keywords":["audio","media","ffmpeg","opus","pcm","webm","ogg"],"repository":{"type":"git","url":"git+https://github.com/amishshah/prism-media.git"},"author":{"name":"Amish Shah","email":"amish@shah.gg"},"bugs":{"url":"https://github.com/amishshah/prism-media/issues"},"license":"Apache-2.0","readme":"[![Logo](https://hydrabolt.me/assets/prism-media-logo.svg)](https://hydrabolt.me/prism-media/)\n\n<div align=\"center\">\n\n[![Build Status](https://travis-ci.org/amishshah/prism-media.svg?branch=master)](https://travis-ci.org/hydrabolt/prism-media)\n[![dependencies](https://david-dm.org/amishshah/prism-media/status.svg)](https://david-dm.org/hydrabolt/prism-media)\n[![npm](https://img.shields.io/npm/dt/prism-media.svg)](https://www.npmjs.com/package/prism-media)\n[![Patreon](https://img.shields.io/badge/donate-patreon-F96854.svg)](https://www.patreon.com/discordjs)\n\n</div>\n\n## What is it?\n\nAn easy-to-use stream-based toolkit that you can use for media processing. All the features provided have predictable\nabstractions and join together coherently.\n\n```js\n// This example will demux and decode an Opus-containing OGG file, and then write it to a file.\nconst prism = require('prism-media');\nconst fs = require('fs');\n\nfs.createReadStream('./audio.ogg')\n  .pipe(new prism.opus.OggDemuxer())\n  .pipe(new prism.opus.Decoder({ rate: 48000, channels: 2, frameSize: 960 }))\n  .pipe(fs.createWriteStream('./audio.pcm'));\n```\n\nThe example above can work with either a native or pure JavaScript Opus decoder - you don't need to worry about changing\nyour code for whichever you install.\n\n- FFmpeg support (either through npm modules or a normal installation) \n- Opus support (native or pure JavaScript)\n- Demuxing for WebM/OGG files (no modules required!)\n- Volume Altering (no modules required!)\n\n## Dependencies\n\nThe following dependencies are all optional, and you should only install one from each category (the first listed in\neach category is preferred)\n\n- Opus\n  - [`@discordjs/opus`](https://github.com/discordjs/opus)\n  - [`node-opus`](https://github.com/Rantanen/node-opus)\n  - [`opusscript`](https://github.com/abalabahaha/opusscript)\n- FFmpeg\n  - [`ffmpeg-static`](http://npmjs.com/ffmpeg-static)\n  - `ffmpeg` from a [normal installation](https://www.ffmpeg.org/download.html)\n- CRC\n  - [`node-crc`](https://github.com/magiclen/node-crc)\n\n## Useful Links\n\n- [Documentation](https://hydrabolt.me/prism-media)\n- [Examples](https://github.com/amishshah/prism-media/tree/master/examples)\n- [Patreon](https://www.patreon.com/discordjs)\n\n## License\n\n> Copyright 2019 - 2020 Amish Shah\n> \n> Licensed under the Apache License, Version 2.0 (the \"License\");\n> you may not use this file except in compliance with the License.\n> You may obtain a copy of the License at\n> \n>    http://www.apache.org/licenses/LICENSE-2.0\n> \n> Unless required by applicable law or agreed to in writing, software\n> distributed under the License is distributed on an \"AS IS\" BASIS,\n> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n> See the License for the specific language governing permissions and\n> limitations under the License.","readmeFilename":"README.md"}