@neoxr/helper
v2.3.9
Published
Just helper tools
Readme
Helper Functions
A collection of upload and shortener functions ready to use.
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 filename String (filename) - optional
* @param extension String (extension) - optional
* @returns Promise<Response>
* Information : support all extension
*/
upload(input: Buffer | String, filename?: String, extension?: 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 filename String (filename) - optional
* @param extension String (extension) - optional
* @returns Promise<Response>
* Information : support all extension exclude (.js)
*/
tmpfiles(input: Buffer | String, filename?: String, extension?: 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. Uguu
import { uguu } from '@neoxr/helper'
/**
* Uploads a file from a Buffer or a remote file URL.
* @param input Buffer (binary file) or string (URL)
* @param filename String (filename) - optional
* @param extension String (extension) - optional
* @returns Promise<Response>
* Information : support all extension
*/
uguu(input: Buffer | String, filename?: String, extension?: String).then(console.log)Site : https://uguu.se
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 filename String (filename) - optional
* @param extension String (extension) - optional
* @returns Promise<Response>
* Information : support all extension
*/
catbox(input: Buffer | String, filename?: String, extension?: String).then(console.log)Site : https://catbox.moe
7. Studio Inter Media
import { studiointermedia } 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
*/
studiointermedia(input: Buffer | String).then(console.log)Site : https://www.studiointermedia.com/
8. ImgHost
import { imghost } 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
*/
imghost(input: Buffer | String).then(console.log)Site : https://imghost.online/
9. Quax
import { quax } from '@neoxr/helper'
/**
* Uploads a file from a Buffer or a remote file URL.
* @param input Buffer (binary file) or string (URL)
* @param filename String (filename) - optional
* @param extension String (extension) - optional
* @returns Promise<Response>
* Information : support all extension exclude (.ogg)
*/
quax(input: Buffer | String, filename?: String, extension?: String).then(console.log)Site : https://qu.ax
10. Crypty CDN
import { crypty } from '@neoxr/helper'
/**
* Uploads a file from a Buffer or a remote file URL.
* @param input Buffer (binary file) or string (URL)
* @param filename String (filename) - optional
* @param extension String (extension) - optional
* @returns Promise<Response>
* Information : support all extension
*/
crypty(input: Buffer | String, filename?: String, extension?: String).then(console.log)Site : https://cdn.crypty.workers.dev
11. Temp Image
import { tempimage } 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
*/
tempimage(input: Buffer | String).then(console.log)Site : https://www.temp-image.com/
