Socket
Socket
Sign inDemoInstall

is-minified-performant

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "is-minified-performant",
"version": "1.0.1",
"version": "1.0.2",
"description": "Checks if JS code is minified or uglified performantly.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,5 +31,5 @@ <h1 align="center">is-minified-performant 🚀</h1>

> Duck typing in computer programming is an application of the duck test—"If it walks like a duck and it quacks like a duck, then it must be a duck"—to determine whether an object can be used for a particular purpose. With normal typing, suitability is determined by an object's type. In duck typing, an object's suitability is determined by the presence of certain methods and properties, rather than the type of the object itself.
> Duck typing in computer programming is an application of the duck test—"If it walks like a duck and it quacks like a duck, then it must be a duck"—In duck typing, an object's suitability is determined by the presence of certain methods and properties, rather than the type of the object itself.
>
> From https://en.wikipedia.org/wiki/Duck_typing
> From [wiki/Duck_typing](https://en.wikipedia.org/wiki/Duck_typing)

@@ -43,12 +43,4 @@ - no space before `return`

I tried
I tried [is-uglified](https://github.com/RaoHai/is-uglified) which uses acorn parse, [is-minified](https://www.npmjs.com/package/is-minified) using RegExp, and [is-minified-code](https://www.npmjs.com/package/is-minified-code) using RegExp and sort, and finally found "Duck Typing" is the most **performant 🚀** and efficient detect method and the correctness not lower than the above ones.
- https://github.com/RaoHai/is-uglified - use acorn parse
- https://www.npmjs.com/package/is-minified - use RegExp
- https://www.npmjs.com/package/is-minified-code - use RegExp
but found "Duck Typing" is the most **performant 🚀** and efficient method and the correctness not lower than the above ones.
### Benchmark Results

@@ -55,0 +47,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc