lurkook / glitch-cdn

Upload your files to free Glitch.com CDN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to glitch-cdn 😘

Version Stars

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

Install

npm i glitch-cdn

Usage

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) 
})

How get authorization and projectId:

Version

Author

👤 Rama

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

About

Upload your files to free Glitch.com CDN

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 100.0%