lukeed/klona is a open-source project on GitHub, written primarily in JavaScript. It has 1.7k stars. A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
Features
Super tiny and performant
Deep clone / recursive copies
Safely handles complex data types Array, Date, Map, Object, RegExp, Set, TypedArray, and more
Unlike a "shallow copy" (eg, Object.assign), a "deep clone" recursively traverses a source input and copies its values — instead of references to its values — into a new instance of that input. The result is a structurally equivalent clone that operates independently of the original source and controls its own values.
Why "klona"? It's "clone" in Swedish. What's with the sheep? Dolly.
Install
$ npm install --save klona
Modes
There are multiple "versions" of klona available, which allows you to bring only the functionality you need!
klona/json
Size (gzip): 240 bytes Availability: CommonJS, ES Module, UMD Ability: JSON data types
import { klona } from 'klona/json';
klona/lite
Size (gzip): 354 bytes Availability: CommonJS, ES Module, UMD Ability: extends klona/json with support for custom class, Date, and RegExp
import { klona } from 'klona/lite';
klona
Size (gzip): 451 bytes Availability: CommonJS, ES Module, UMD Ability: extends klona/lite with support for Map, Set, DataView, ArrayBuffer, TypedArray
import { klona } from 'klona';
klona/full
Size (gzip): 501 bytes Availability: CommonJS, ES Module, UMD Ability: extends klona with support for Symbol properties and non-enumerable properties
TopGit's last sync did not record any GitHub topics for lukeed/klona. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on lukeed/klona?
The most recent commit recorded on lukeed/klona was 7 months ago, based on the GitHub push timestamp. The repository has 53 forks — one of the better signals of community interest.
How many stars does lukeed/klona have?
lukeed/klona has 1.7k GitHub stars — refresh the page for the live number, or check github.com/lukeed/klona. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is lukeed/klona?
lukeed/klona (lukeed/klona) is a JavaScript project on GitHub. From the project's own README: A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
What language is lukeed/klona written in?
lukeed/klona is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
Read full README in the tab above.
Curious whether klona is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about klona.