With this module you can publish files automatically on the Glitch.com CDN
⚠️ Content that you upload to the server will not show up in the "Assets" tab
❗ Glitch.com CDN has a limit of 250mb per file
❗ Glitch.com may remove your bucket if they notice that you are mainly using the project for cdn and not for hosting applications on their hosting service.
npm i glitch-cdn
var glitchcdn = require("glitch-cdn");
//Structure upload2glitch.upload(authorization, projectId, file, url)
glitchcdn.upload("1c0612ac-e403-4a0b-95e9-3a75d1f650f9","e3de541d-95d7-4ed6-a3ee-89abefa4211b",`./frog.png`,`img/cutepictures/frog.png`, (returndata)=>{
console.log(returndata)
})
👤 Rama
- Website: https://ramaprojects.ru/
- Github: @rama0dev
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!