A simple, lightweight, and easy to use library for BunnyCDN's Stream API
npm install bunnycdn-stream[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
![Codecov][coverage-shield]

A simple, lightweight, and easy to use library for BunnyCDN's stream api.
Documentation
·
Report Bug
·
Request Feature
Table of Contents
![Product Name Screen Shot][product-screenshot]
There are many bunnycdn modules for accessing bunnycdn storage yet none of them provide access to the stream endpoint, which requires seperate authentication. Therefore I decided to just write my own in typescript.
This was harder than you would think, a lot of bunnycdn's documentation is misnamed or just not documented. Therefore I had to experiment a lot but I believe I was able to make this library simple and easy to use.
- Axios
- Typescript
- TSup
- Biome
To get a local copy up and running follow these simple example steps.
- npm
``sh`
npm install bunnycdn-stream
- yarn
`sh`
yarn add bunnycdn-stream
_For more examples, please refer to the Documentation_
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
1. Fork the Project
2. Create your Feature Branch (git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature'
3. Commit your Changes ()git push origin feature/AmazingFeature
4. Push to the Branch ()
5. Open a Pull Request
The project is tested with vitest and requires you to have a library on your BunnyCDN account to send commands to the Bunny API.
> Warning: all videos will be deleted during testing.
`sh`
BUNNY_VIDEO_LIBRARY=xxx BUNNY_API_KEY=xxx npm test
Also, IGNORE_PRUNE=1` can be used to keep the testing video at the end of the tests for further manual checking.
Distributed under the MIT License. See LICENSE for more information.
DanCodes - @dan-online - dan@dancodes.online
Project Link: https://github.com/dan-online/bunnycdn-stream
- Josh Core - For the project layout so I could easily write this module in a day without worrying about typescript issues
[contributors-shield]: https://img.shields.io/github/contributors/dan-online/bunnycdn-stream.svg?style=for-the-badge
[contributors-url]: https://github.com/dan-online/bunnycdn-stream/graphs/contributors
[coverage-shield]: https://img.shields.io/codecov/c/github/dan-online/bunnycdn-stream?token=FAU4GNC5FD&style=for-the-badge&logo=codecov
[forks-shield]: https://img.shields.io/github/forks/dan-online/bunnycdn-stream.svg?style=for-the-badge
[forks-url]: https://github.com/dan-online/bunnycdn-stream/network/members
[stars-shield]: https://img.shields.io/github/stars/dan-online/bunnycdn-stream.svg?style=for-the-badge
[stars-url]: https://github.com/dan-online/bunnycdn-stream/stargazers
[issues-shield]: https://img.shields.io/github/issues/dan-online/bunnycdn-stream.svg?style=for-the-badge
[issues-url]: https://github.com/dan-online/bunnycdn-stream/issues
[license-shield]: https://img.shields.io/github/license/dan-online/bunnycdn-stream.svg?style=for-the-badge
[license-url]: https://github.com/dan-online/bunnycdn-stream/blob/master/LICENSE
[product-screenshot]: https://github.com/dan-online/bunnycdn-stream/raw/main/assets/images/demo.png?raw=true