1.0.10 • Published 2 months ago

glitch-cdn v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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.10

2 months ago

1.0.9

9 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago