1.0.0 • Published 5 months ago

@sryden/radiant v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

1.0.0

5 months ago