is-minified-code

v2.0.0
Check if a piece of code is minified.
minified minification

is-minified-code

Check if a piece of JS/CSS code is minified. Tested on the 10k most popular jsDelivr packages.

Installation

$ npm install is-minified-code

or

<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>

Usage

const isMinified = require('is-minified-code'); // or window.isMinified

isMinified('/* code */'); // => true/false

License

Copyright (c) 2017 Martin Kolárik. Released under the MIT license.

npm i is-minified-code

Metadata

  • MIT
  • Whatever
  • Martin Kolárik
  • released 11/17/2018

Downloads

Maintainers