1.0.0 • Published 1 year ago
@ultramodz/graph-uploader v1.0.0
@ultramodz/graph-uploader
Upload images or videos and convert them into Graph.org links.
Installation
You can install this package via npm:
npm install @ultramodz/graph-uploader
Example
Here's an example of how to use
const { GraphOrg } = require('@ultramodz/graph-uploader');
const path = '/path/to/your/file.jpg'; // Provide the path to your image or video file
GraphOrg(path)
.then((graphLink) => {
console.log('Graph.org link:', graphLink);
})
.catch((error) => {
console.error('Upload failed:', error.message);
});
1.0.0
1 year ago