Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

utilia

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utilia

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

  • 2.6.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Made with ❤️ by OwenPotent

Keywords

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc