@ultramodz/graph-uploader
v1.0.0
Published
Upload an image or video and convert it into a Graph.org link
Downloads
3
Maintainers
Readme
@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);
});