mirai-func
v1.1.0
Published
simpel function for whatsapp-bot
Downloads
10
Readme
# Mirai-Func
Mirai-Func is a Node.js module that provides various utility functions and scrapers to simplify application development with useful features.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Using Functions](#using-functions)
- [Using Scrapers](#using-scrapers)
- [Features](#features)
- [Functions](#functions)
- [Scrapers](#scrapers)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
Installation
To install Mirai-Func, run the following npm command:
npm install mirai-func
Usage
Using Functions
const miraiFunc = require('mirai-func');
// Example using sizeLimit function
let limit = miraiFunc.Function.sizeLimit();
console.log('Size limit:', limit);
// Example using getRandom function
let randomValue = miraiFunc.Function.getRandom();
console.log('Random value:', randomValue);
// Use other functions as needed...
Using Scrapers
const miraiFunc = require('mirai-func');
// Example using nhentaiGET scraper
miraiFunc.Scraper.nhentaiGET('12345')
.then(data => {
console.log('Doujin details:', data);
})
.catch(err => {
console.error('Error:', err);
});
// Example using tiktok scraper
miraiFunc.Scraper.tiktok('https://vm.tiktok.com/ZMFMun818/')
.then(data => {
console.log('TikTok video:', data);
})
.catch(err => {
console.error('Error:', err);
});
// Use other scrapers as needed...
Features
Functions
sizeLimit
: Limit size.getRandom
: Get random value.msToDate
: Convert milliseconds to date.addItem
: Add item.reduceItem
: Reduce item.toPDF
: Convert to PDF.hitstat
: Hit statistics.formatSize
: Format size.ucapan
: Greetings.formatBar
: Format bar.delay
: Delay.formatIDR
: Format Rupiah (IDR).formatNumber
: Format number.toDay
: Day.toTime
: Time.jsonFormat
: Format JSON.pickRandom
: Pick randomly.texted
: Text.done
: Done.example
: Example.getLink
: Get link.makeId
: Make ID.getBuffer
: Get buffer (asynchronous).fetchJson
: Fetch JSON (asynchronous).fetchBuffer
: Fetch buffer (asynchronous).runtime
: Runtime.isUrl
: Check URL.tanggal
: Date.style
: Style.generateUUIDv4
: Generate UUIDv4.
Scrapers
simsimi
: SimSimi.nhentaiGET
: Get data from nhentai (asynchronous).mediafire
: Mediafire (asynchronous).SoundSearch
: Sound search (asynchronous).faktaunik
: Unique facts (asynchronous).ssweb
: SSWeb (asynchronous).geminiImage
: Gemini image (asynchronous).gemini
: Gemini (asynchronous).gpt4
: GPT-4 (asynchronous).openAi
: OpenAI (asynchronous).Thinkany
: Thinkany (asynchronous).Upscale
: Upscale quality (asynchronous).Rule34
: Rule34 (asynchronous).instagram
: Instagram (asynchronous).tiktoks
: TikTok (asynchronous).tiktok
: TikTok (asynchronous).pinterest
: Pinterest (asynchronous).ytmp3
: YouTube MP3 (asynchronous).ytmp4
: YouTube MP4 (asynchronous).quotesAnime
: Anime quotes (asynchronous).Lyric
: Lyrics (asynchronous).wikipedia
: Wikipedia (asynchronous).Encrypt
: Encryption (asynchronous).Decrypt
: Decryption (asynchronous).pornhubS
: Pornhub (asynchronous).googleImage
: Google images (asynchronous).konachan
: Konachan (asynchronous).
Examples
For more examples and detailed usage, refer to the examples directory in this repository.
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
This project is licensed under the ISC License.