Sends the provided text to the web service and retrieves a URL and an ID from the response.
This module was created by Nimesh Piyumal.
- GitHub: Nimesh Piyumal
- Email: nimeshofficial.info@gmail.com
Feel free to contribute or report issues!
Install the module using npm:
npm install genux-text
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();
{
status: true,
id: '123456',
url: 'https://text.genux.me/index.php?action=raw&id=123456'
}