2.2.2 • Published 8 months ago

@neoxr/helper v2.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Helper Functions

A collection of upload and shortener functions ready to use.

npm version Npm package monthly downloads GitHub repo size Types

1. Open's API (Neoxr)

import { short, upload } from '@neoxr/helper'

/**
 * Uploads a file from a Buffer or a remote file URL.
 * @param input Buffer (binary file) or string (URL)
 * @param ext String (extension) - optional
 * @returns Promise<Response>
 * Information : support all extension
 */
upload(input: Buffer | String, ext: String).then(console.log)

/**
 * Shortens a given URL.
 * @param {string} url - The full URL to shorten.
 * @returns {Promise<string>} A promise that resolves to the shortened URL.
 */
short(input: String).then(console.log)

Site : https://s.neoxr.eu

2. TmpFiles

import { tmpfiles } from '@neoxr/helper'

/**
 * Uploads a file from a Buffer or a remote file URL.
 * @param input Buffer (binary file) or string (URL)
 * @param ext String (extension) - optional
 * @returns Promise<Response>
 * Information : support all extension exclude (.js)
 */
tmpfiles(input: Buffer | String, ext: String).then(console.log)

Site : https://tmpfiles.org

3. ImgBB

import { imgbb } from '@neoxr/helper'

/**
 * Uploads a file from a Buffer or a remote image URL.
 * @param input Buffer (binary file) or string (URL)
 * @returns Promise<Response>
 * Information : image only
 */
imgbb(input: Buffer | String).then(console.log)

Site : https://imgbb.com

4. ImgKub

import { imgkub } from '@neoxr/helper'

/**
 * Uploads a file from a Buffer or a remote image URL.
 * @param input Buffer (binary file) or string (URL)
 * @returns Promise<Response>
 * Information : image only
 */
imgkub(input: Buffer | String).then(console.log)

Site : https://imgkub.com

5. Bash Upload

import { bashupload } from '@neoxr/helper'

/**
 * Uploads a file from a Buffer or a remote file URL.
 * @param input Buffer (binary file) or string (URL)
 * @param ext String (extension) - optional
 * @returns Promise<Response>
 * Information : support all extension
 */
bashupload(input: Buffer | String, ext: String).then(console.log)

Site : https://bashupload.com

6. Catbox

import { catbox } from '@neoxr/helper'

/**
 * Uploads a file from a Buffer or a remote file URL.
 * @param input Buffer (binary file) or string (URL)
 * @param ext String (extension) - optional
 * @returns Promise<Response>
 * Information : support all extension
 */
catbox(input: Buffer | String, ext: String).then(console.log)

Site : https://catbox.moe

1.2.3

8 months ago

1.2.2

1 year ago

2.2.1

8 months ago

2.2.0

8 months ago

2.2.2

8 months ago

2.1.0

8 months ago

2.0.0

8 months ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago