{"_id":"@aitube/encoders","name":"@aitube/encoders","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"@aitube/encoders","module":"index.ts","main":"dist/index.js","types":"dist/index.d.ts","type":"module","version":"0.0.0","description":"Collection of blob, buffer and base64 utilities. Used by AiTube.at","scripts":{"build":"bun build --target=node ./src/index.ts --outfile=dist/index.js && bun run build:declaration","build:declaration":"tsc --emitDeclarationOnly --project tsconfig.types.json","postbuild":"rimraf tsconfig.types.tsbuildinfo","publish":"npm publish --access public"},"devDependencies":{"bun-types":"latest","prettier":"^3.2.5","rimraf":"^5.0.5","typescript":"^5.4.5"},"peerDependencies":{"typescript":"^5.4.5"},"dependencies":{},"repository":{"type":"git","url":"git+https://github.com/jbilcke-hf/aitube-encoders.git"},"keywords":["AiTube"],"author":{"name":"Julian Bilcke"},"license":"MIT","gitHead":"8f07a74c94baaec1e49e043dbe04da245affb0b1","bugs":{"url":"https://github.com/jbilcke-hf/aitube-encoders/issues"},"homepage":"https://github.com/jbilcke-hf/aitube-encoders#readme","_id":"@aitube/encoders@0.0.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-jKIii0m0Lwr6l+slA9cPg/c8WCl2uylNYON74VU+3cgi//7Yt34Ym1afGIjQd2vEWzPR7LrlHcrb4F0War7Fmg==","shasum":"d3959eec318904e7a5351ce4ffb614fc1b77aa84","tarball":"https://registry.npmjs.org/@aitube/encoders/-/encoders-0.0.0.tgz","fileCount":20,"unpackedSize":8831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZcA8m9VAw3mTs1XbM9zdtbBNA8z/rCmPDBer/RWAnEAIgL6Mj9HDEwX6EIyNwC5rycttttvoj32ZCmk+/dFP83x8="}]},"_npmUser":{"name":"flngr","email":"julian.bilcke@gmail.com"},"directories":{},"maintainers":[{"name":"flngr","email":"julian.bilcke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/encoders_0.0.0_1714475003547_0.6198107966152764"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-30T11:03:23.443Z","0.0.0":"2024-04-30T11:03:23.736Z","modified":"2024-04-30T11:03:24.036Z"},"maintainers":[{"name":"flngr","email":"julian.bilcke@gmail.com"}],"description":"Collection of blob, buffer and base64 utilities. Used by AiTube.at","homepage":"https://github.com/jbilcke-hf/aitube-encoders#readme","keywords":["AiTube"],"repository":{"type":"git","url":"git+https://github.com/jbilcke-hf/aitube-encoders.git"},"author":{"name":"Julian Bilcke"},"bugs":{"url":"https://github.com/jbilcke-hf/aitube-encoders/issues"},"license":"MIT","readme":"# @aitube/encoders\n\n*Collection of blob, buffer and base64 utilities. Used by AiTube.at*\n\n## ATTENTION\n\nAiTube is currently in heavy development, so this library is experimental,\nand may be subject to unannounced breaking changes.\n\nWe are sorry for any inconvenience this might cause.\n\n## Installation\n\nTo install the package, run the following command:\n\n```bash\nnpm install @aitube/encoders\n```\n\n## Getting Started\n\n```typescript\nimport {\n  addBase64Header,\n  extractBase64,\n  blobToWebp,\n  dataUriToBlob,\n  bufferToHeic,\n  bufferToJpeg,\n  bufferToMp3,\n  bufferToMp4,\n  bufferToPng,\n  bufferToWav,\n  bufferToWebm,\n  bufferToWebp\n} from '@aitube/encoders'\n\n```\n\n## Build Instructions\n\nInstall [Bun](https://bun.sh/)\n\nRun the following commands:\n\n```bash\nbun install\n\nbun run build\n```\n\nTo publish:\n\n```bash\nbun run build\n\nbun run build:declaration\n\nbun run publish\n```\n\n## Contributing\n\nWe welcome contributions! Please feel free to submit a pull request.\n\n## License\n\nThis package is under the MIT License. See `LICENSE` file for more details.\n","readmeFilename":"README.md"}