1.0.1 • Published 6 months ago

genux-text v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

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'
}
1.0.1

6 months ago

1.0.0

6 months ago