A simple, lightweight, and easy to use library for BunnyCDN's stream api.
Documentation
·
Report Bug
·
Request Feature
Table of Contents
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.
To get a local copy up and running follow these simple example steps.
-
npm
npm install bunnycdn-stream
-
yarn
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - 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.
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 - [email protected]
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