genux-text
v1.0.1
Published
Sends the provided text to the web service and retrieves a URL and an ID from the response.
Readme
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.
- GitHub: Nimesh Piyumal
- Email: [email protected]
Feel free to contribute or report issues!
Installation
Install the module using npm:
npm install genux-textUsage
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'
}