is-minified-code

Check if a piece of code is minified.

MIT 3 个版本
安装
npm install is-minified-code
yarn add is-minified-code
pnpm add is-minified-code
bun add is-minified-code
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.

版本列表
2.0.0 2018-11-17
1.1.0 2017-08-20
1.0.0 2017-06-09