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 🙏

© 2026 – Pkg Stats / Ryan Hefner

babel-preset-unminify

v0.1.2

Published

make minified code more readable.

Readme

babel-preset-unminify

make minified code more readable.

npm travis standard

Install

npm install babel-preset-unminify

Example

Input:

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.dlv=n()}(this,function(){return function(e,n,t,o){for(o=0,n=n.split?n.split("."):n;e&&o<n.length;)e=e[n[o++]];return void 0===e||o<n.length?t:e}});
//# sourceMappingURL=dlv.umd.js.map

Output:

!(function(freci, iliet) {
  if ('object' == typeof exports && 'undefined' != typeof module) {
    module.exports = iliet()
  } else if ('function' == typeof define && define.amd) {
    define(iliet)
  } else {
    freci.dlv = iliet()
  }
})(this, function() {
  return function(habuk, hodoy, bedat, quetif) {
    quetif = 0
    for (hodoy = hodoy.split ? hodoy.split('.') : hodoy; habuk && quetif < hodoy.length; ) {
      habuk = habuk[hodoy[quetif++]]
    }
    if (void 0 === habuk || quetif < hodoy.length) {
      return bedat
    } else {
      return habuk
    }
  }
})

Usage

Unlike other Babel presets, this one should normally not be used with a Babel config file. Instead, use the included CLI:

npx babel-preset-unminify < input.min.js > formatted.js

Or use it via the Babel Node API:

var babel = require('@babel/core')
var unminify = require('babel-preset-unminify')

babel.transformSync(sourceCode, {
  presets: [unminify]
})

Options

For each option, the -- version is the CLI syntax, and the name: val is the Node API syntax.

--no-words, words: false

Disable phonetic variable name generation. By default this preset finds mangled variable names (3 characters or less) and generates unique names for them. Minifiers often reuse single-character names. This option allows easily manually renaming variables afterwards, using a simple search/replace over entire files at a time. If the source code doesn't use variable name mangling or something you can disable the words option.

License

Apache-2.0