genux-text

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i genux-text

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

36.3 kB

Total Files

3

Last publish

Collaborators

  • nimesh-official