Check if a piece of JS/CSS code is minified. Tested on the 10k most popular jsDelivr packages.
$ npm install is-minified-code
or
<script src="https://cdn.jsdelivr.net/npm/is-minified-code@1.1.0"></script>
const isMinified = require('is-minified-code'); // or window.isMinified
isMinified('/* code */'); // => true/false
Copyright (c) 2017 Martin Kolárik. Released under the MIT license.