is-minified-code

Check if a piece of code is minified.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-minified-code
402.0.04 years ago5 years agoMinified + gzip package size for is-minified-code in KB

Readme

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/is-minified-code@1.1.0"></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.