@sryden/radiant

1.0.0 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

npm i @sryden/radiant

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.59 kB

Total Files

3

Last publish

Collaborators

  • halex