# utilia

> A utility package for you to use in your projects or a Discord bot!

Latest version **2.6.5** (published 2024-02-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install utilia
pnpm add utilia
yarn add utilia
bun add utilia
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.6.5 |
| Published | 2024-02-05 |
| First published | 2021-07-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 890.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | OwenPotent |
| Maintainers | owenpotent |
| Keywords | util, utility, discord.js, discord-utils, discord, utilia, captcha, password, api-wrapper, console, documentation, docs, discord.js-v13, discord.js-v14 |

## Links

- npm: https://www.npmjs.com/package/utilia
- Repository: https://github.com/OwenPotent/utilia
- Homepage: https://owenpotent.github.io/utilia
- Issues: https://github.com/OwenPotent/utilia/issues
- npm.io page: https://npm.io/package/utilia

## Dependencies (6)

- [ms](https://npm.io/package/ms.md) ^2.1.3
- [chalk](https://npm.io/package/chalk.md) ^4.1.1
- [canvas](https://npm.io/package/canvas.md) ^2.8.0
- [discord.js](https://npm.io/package/discord.js.md) ^14.14.1
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [typescript](https://npm.io/package/typescript.md) ^5.3.3

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 2.6.5 (latest) — 2024-02-05
- 2.6.0 — 2024-02-05
- 2.5.1 — 2024-02-01
- 2.5.0 — 2024-02-01
- 2.4.0 — 2024-01-31
- 2.3.0 — 2024-01-31
- 2.2.0 — 2024-01-31
- 2.1.0 — 2024-01-31
- 2.0.0 — 2022-02-15
- 1.8.1 — 2021-08-10
- 1.8.0 — 2021-08-10
- 1.7.2 — 2021-08-05
- 1.7.0 — 2021-07-19
- 1.6.9 — 2021-07-17
- 1.6.6 — 2021-07-17
- … 25 more at https://npm.io/package/utilia/versions

## README

# Utilia

[![NPM](https://nodei.co/npm/utilia.png)](https://nodei.co/npm/utilia/)

Utilia is an NPM package for use in Discord Bot or JavaScript projects. It is still in development, and if you encounter any errors or would like to contribute, please make a pull request on the [GitHub page](https://github.com/OwenPotent/utilia)!

For more information, please visit the [documentation](https://owenpotent.github.io/utilia).

## Table of Contents

- [Utilia](#utilia)
  - [Table of Contents](#table-of-contents)
  - [What's New?](#whats-new)
    - [Added:](#added)
      - [FileMinifier](#fileminifier)
  - [Getting Started](#getting-started)
  - [Additional Information](#additional-information)
    - [Links](#links)
      - [Made with ❤️ by OwenPotent](#made-with-️-by-owenpotent)

## What's New?

### Added:

#### FileMinifier

The `FileMinifier` class is a new feature that allows you to minify JavaScript files. It can remove comments, whitespace, and combine files. To use it, you can follow the example below:

```javascript
const FileMinifier = require('utilia');

const file = `
  const a = 1;
  const b = 2;
  const c = a + b;
  console.log(c);
`;

const options = {
  removeComments: true,
  removeWhitespace: true,
  combineFiles: true,
}
const minifier = new FileMinifier(file, options);
const minified = minifier.minify("output.js");
```

## Getting Started

To get started, install the npm package by running the command below:

With NPM:
  
  ```bash
  npm install utilia
  ```

With Yarn:

  ```bash
  yarn add utilia
  ```

## Additional Information

### Links

- [GitHub](https://github.com/OwenPotent/utilia)
- [NPM](https://npmjs.com/package/utilia)
- [Docs](https://owenpotent.github.io/utilia)

#### Made with ❤️ by [OwenPotent](https://github.com/OwenPotent)

---
_Source: https://npm.io/package/utilia · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
