1.0.11 • Published 9 months ago

glitch-cdn v1.0.11

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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:

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!

1.0.11

9 months ago

1.0.10

1 year ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago