Skip to content

OwenPotent/utilia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utilia

NPM

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!

For more information, please visit the documentation.

Table of Contents

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:

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:

npm install utilia

With Yarn:

yarn add utilia

Additional Information

Links

Made with ❤️ by OwenPotent

About

An NPM package that you can use in your projects!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors