Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

klona

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klona - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

dist/index.js

19

package.json
{
"name": "klona",
"version": "1.1.1",
"version": "1.1.2",
"repository": "lukeed/klona",
"description": "A tiny (366B) and fast utility to \"deep clone\" Objects, Arrays, Dates, RegExps, and more!",
"module": "dist/klona.mjs",
"unpkg": "dist/klona.min.js",
"main": "dist/klona.js",
"types": "klona.d.ts",
"description": "A tiny (423B) and fast utility to \"deep clone\" Objects, Arrays, Dates, RegExps, and more!",
"module": "dist/index.mjs",
"unpkg": "dist/index.min.js",
"main": "dist/index.js",
"types": "index.d.ts",
"license": "MIT",

@@ -26,3 +26,3 @@ "author": {

"pretest": "npm run build",
"test": "tape -r esm test/*.js | tap-spec"
"test": "uvu -r esm test"
},

@@ -38,7 +38,6 @@ "keywords": [

"devDependencies": {
"bundt": "0.4.0",
"bundt": "1.0.2",
"esm": "3.2.25",
"tap-spec": "5.0.0",
"tape": "4.13.0"
"uvu": "0.0.17"
}
}

@@ -10,3 +10,3 @@ <div align="center">

<a href="https://github.com/lukeed/klona/actions">
<img src="https://badgen.net/github/status/lukeed/klona" alt="status" />
<img src="https://github.com/lukeed/klona/workflows/CI/badge.svg" alt="CI" />
</a>

@@ -21,3 +21,3 @@ <a href="https://npmjs.org/package/klona">

<div align="center">A tiny (366B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!</div>
<div align="center">A tiny (423B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!</div>

@@ -36,4 +36,4 @@

* **ES Module**: [`dist/klona.mjs`](https://unpkg.com/klona/dist/klona.mjs)
* **CommonJS**: [`dist/klona.js`](https://unpkg.com/klona/dist/klona.js)
* **ES Module**: [`dist/index.mjs`](https://unpkg.com/klona/dist/index.mjs)
* **CommonJS**: [`dist/index.js`](https://unpkg.com/klona/dist/index.js)
* **UMD**: [`dist/klona.min.js`](https://unpkg.com/klona)

@@ -105,2 +105,10 @@

```
Load times:
fast-clone 0.884ms
lodash/clonedeep 27.716ms
rfdc 0.782ms
clone-deep 4.023ms
deep-copy 0.513ms
klona 0.333ms
Validation:

@@ -110,15 +118,15 @@ ✘ JSON.stringify (FAILED @ "initial copy")

✔ lodash
✘ rfdc (FAILED @ "initial copy")
✔ clone-deep
✘ deep-copy (FAILED @ "initial copy")
✔ depcopy
✔ klona
Benchmark:
JSON.stringify x 37,803 ops/sec ±0.68% (89 runs sampled)
fast-clone x 24,210 ops/sec ±0.81% (91 runs sampled)
lodash x 40,563 ops/sec ±1.10% (94 runs sampled)
clone-deep x 85,020 ops/sec ±0.17% (95 runs sampled)
deep-copy x 116,139 ops/sec ±0.29% (96 runs sampled)
depcopy x 24,392 ops/sec ±0.71% (96 runs sampled)
klona x 274,496 ops/sec ±0.15% (99 runs sampled)
JSON.stringify x 36,628 ops/sec ±1.34% (89 runs sampled)
fast-clone x 23,518 ops/sec ±1.18% (91 runs sampled)
lodash x 33,810 ops/sec ±1.34% (94 runs sampled)
rfdc x 181,634 ops/sec ±0.71% (95 runs sampled)
clone-deep x 84,558 ops/sec ±0.19% (96 runs sampled)
deep-copy x 112,866 ops/sec ±1.26% (94 runs sampled)
klona x 220,356 ops/sec ±0.34% (97 runs sampled)
```

@@ -125,0 +133,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc