Genux Text Hosting
Sends the provided text to the web service and retrieves a URL and an ID from the response.
Author Credit
This module was created by Nimesh Piyumal.
Feel free to contribute or report issues!
Installation
Install the module using npm:
npm install genux-text
Usage
const { getText } = require('genux-text');
async function exampleUsage() {
const result = await getText('Hello, world!');
if (result.status) {
console.log(result);
} else {
console.log('Failed to upload text.');
}
}
exampleUsage();
Output
{
status: true,
id: '123456',
url: 'https://text.genux.me/index.php?action=raw&id=123456'
}