is-minified-code
v2.0.0
Published
Check if a piece of code is minified.
Downloads
589
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/[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.