npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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.