glitch-cdn

1.0.10 • Public • Published

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

❗ 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.

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!

Package Sidebar

Install

npm i glitch-cdn

Weekly Downloads

2

Version

1.0.10

License

ISC

Unpacked Size

5.49 kB

Total Files

3

Last publish

Collaborators

  • jecboom