Network Performance Monitor

    utilia
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    NPM

    Utilia

    An NPM package for you to use on your Discord Bot or JavaScript projects! This is still however in development and countless of errors have been encountered, if you wish to help me add features, make a pull request at the github page!

    What's New?

    Added:

    Functions

    • checkForContents | This function checks if a file or directory exists.

      const fs = require("fs");
      const { checkForContents } = require("utilia");
      
      const file = "./test.txt";
      
      // Check for file
      checkForContents(file, "file");
    • getAllFiles | This function returns all files in a directory.

      const { getAllFiles } = require("utilia");
      
      console.log(getAllFiles("./"));

      Output:

      [
        "./README.md",
        "./package.json",
        "./package-lock.json",
        "./test.txt"
      ]
      

    Classes

    - Embedder | This class is an extended class of the Discord.js Embed class.
    
    ```js
      const { Embedder } = require("utilia");
    
      const options = {
          useCodeblockInDescription: true,
          useBoldInDescription: true,
          useTimestamp: true
      }
    
        const embedder = new Embedder(options);
        const embed = embedder.createEmbed({
            title: "Test",
            description: "This is a test",
            color: "red"
        });
    
        console.log(embed);
    ```
    

    Getting Started

    To get started, install the npm package by running the command below:

    With NPM:

    npm install --save utilia

    With Yarn:

    yarn add utilia

    Additional Info

    Utilia.Embedder - A custom but more cleaner embed feature highly inspired from the discord.js MessageEmbed class.
    Utilia.hasNitro - Typescript support from the original feature by @thehackerboi69's discord-premium-utils dependency.

    Links

    More coming soon!

    Install

    npm i utilia

    DownloadsWeekly Downloads

    4

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    613 kB

    Total Files

    66

    Last publish

    Collaborators

    • owenpotent