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 🙏

© 2025 – Pkg Stats / Ryan Hefner

aria-legacy-compiler

v1.0.1

Published

Compiler TypeScript -> ES5 con plugin e polyfill per ambienti legacy

Readme

🧩 Aria Legacy Compiler

Aria Legacy Compiler è un tool CLI che genera automaticamente la struttura di progetto per ambienti legacy compatibili con Babel e TypeScript.
Fornisce un template di partenza preconfigurato con supporto per plugin personalizzati, trasformazioni e compilazione ES5.


Installazione

Per installare il pacchetto usare npx. Per cui una volta raggiunta la cartella di destinazione entro la quale creare il progetto basterà lanciare il comando sostituendo a nome-progetto il nome del nuovo Template

🔹Comandonpx

    npx aria-legacy-compiler nome-progetto

Struttura del progetto

Il comando sopra indicato creerà una struttura come la seguente:

    nome-progetto/
    ├── src/
    ├── modules
    ├── operations
    │   └── global.ts
    ├── babel.config.cjs
    ├── tsconfig.json
    ├── package.json
    └── README.md

Sviluppo

Basterà modificare la global.ts in base alle proprie esigenze e trattare la folder src come qualsiasi folder progetto che usavamo prima. Per cui all'interno della cartella modules creeremo una cartella per ogni modulo del template e dentro a ogni rispettiva cartella andremo a inserire gli script necessari.

Una volta finito lo sviluppo, sarà necessario lanciare la build del progetto che effettuerà diverse azioni:

  • ESLint controllerà che non vengano usate feature ES6+
  • il plugin Babel si occuperà di convertire qualsiasi feature ES6+ in codice vanilla JS.
    npm run build

A questo punto verrà creata una cartella /dist contenente tutti i nostri file in vanilla JS, copieremo questi file in piattaforma

Feature attualmente gestite

Le seguenti funzionalità ECMAScript sono supportate o trasformate automaticamente:

  • let e const → conversione in dichiarazioni compatibili con ambienti ES5
  • Array.prototype.includes()
  • for...of → iterazione tradotta in loop compatibili
  • Template literals (string ${value})
  • Spread operator (...args)
  • Destructuring assignment (const { a, b } = obj)

🧠 Metodi consigliati per i log e la serializzazione

Con questi metodi si consiglia di usare JSON.stringify per stamparli o salvarli

  • Object.entries()
  • Object.values()
  • Object.assign()
    const obj = { a: 1, b: 2 };
    const values = Object.values(obj);
    _log(`values ${JSON.stringify(values)}`, "WARN");

📄 License

This project is licensed under the MIT License — see the LICENSE file for details. © 2025 Arianna