npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aeth/min.js

v0.0.1

Published

A shortened version of nodejs to reduce file weight.

Downloads

11

Readme

min.js - Lightweight JavaScript Library

SEE HOW TO USE: Docs

min.js is a lightweight JavaScript library designed to make your code files smaller and improve the execution speed of your JavaScript programs. By using min.js, you can easily replace common JavaScript keywords and function names with shorter aliases, resulting in a more concise codebase. This readme file provides instructions on how to use the min.js library and highlights the advantages of having a lighter and faster codebase.

Installation

To use min.js in your project, follow these steps:

  1. Install the library via npm:
npm install @aeth/min.js
  1. Import the library into your JavaScript file:
const { min } = require("@aeth/min.js");

Usage

Using min.js is straightforward. After importing the library, you can specify the JavaScript files you want to minify by using the file() method. Then, call the run() method to execute the minified code.

const { min } = require("@aeth/min.js");

min.file("./path/to/file1.min.js");
min.file("./path/to/file2.min.js");
// add as many files as you want.

// run code
min.run();

Examples

Here are two simple examples demonstrating the usage of min.js:

Code with abbreviated javascript:

Suppose you have a JavaScript file named code.min.js with the following code:

// code.min.js
c greeting = "Hello, world!";
cl.lo(greeting);

Then import it and run:

const { min } = require("@aeth/min.js");

min.file("./code.min.js");
min.Prun();

The code.min.js file will have the least amount of characters and will do what the original does.

Advantages

min.js provides several advantages when used in your JavaScript projects:

1. Reduced File Size

By replacing commonly used keywords and function names with shorter aliases, min.js significantly reduces the size of your JavaScript files. This reduction in file size can lead to faster file transfer times and improved performance, especially in scenarios with limited bandwidth or high-latency connections.

2. Faster Execution

min.js eliminates the need to parse and interpret lengthy JavaScript code by replacing keywords and function names directly. This results in faster execution times for your JavaScript programs. By reducing the time spent on parsing and interpreting code, your applications can respond more quickly, leading to a smoother user experience.

3. Faster Development

min.js simplifies your coding process by providing shorthand notations for frequently used JavaScript keywords and function names. With shorter aliases, you can write code more quickly and efficiently. Additionally, the reduced file size enables faster loading and testing, helping you iterate faster during the development process.

Conclusion

min.js offers a convenient way to reduce file size, improve execution speed, and streamline your JavaScript development process. By adopting min.js in your projects, you can benefit from a lighter codebase, faster execution times.