https://github.com/owenpotent/utilia
An NPM package that you can use in your projects!
https://github.com/owenpotent/utilia
api api-client bot discord javascript nodejs
Last synced: 3 months ago
JSON representation
An NPM package that you can use in your projects!
- Host: GitHub
- URL: https://github.com/owenpotent/utilia
- Owner: OwenPotent
- License: gpl-3.0
- Created: 2021-07-10T11:51:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T13:00:06.000Z (over 2 years ago)
- Last Synced: 2025-02-28T22:48:21.041Z (over 1 year ago)
- Topics: api, api-client, bot, discord, javascript, nodejs
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/utilia
- Size: 675 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utilia
[](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)