@sryden/radiant
v1.0.0
Published
Node.js module for uploading files to SRYDEN CDN
Downloads
1
Readme
SRYDEN Radiant
This is a Node.js module for automating uploads to the SRYDEN CDN..
Installation
npm install @sryden/radiant
Usage
const radiant = require('@sryden/radiant');
// Example usage
const filePath = './file.png';
radiant.upload(filePath)
.then(response => {
console.log('Upload response:', response); // CDN will return the image name and some other useful info
})
.catch(error => {
console.error('Error:', error.message);
});
Methods
upload(filePath)
Uploads a file to SRYDEN CDN.
filePath
: Path to the file you want to upload.
Returns a Promise that resolves to the upload response.