1.7k sao GitHub và vẫn tăng — lukeed/klona là dự án JavaScript mà TopGit đang theo dõi trên nền tảng. A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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
lukeed/klona có 1.7k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/lukeed/klona. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
lukeed/klona có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho lukeed/klona. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
lukeed/klona còn đang phát triển không?
Commit gần nhất trên lukeed/klona là 4 tháng trước (theo timestamp GitHub). Repo có 48 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
lukeed/klona là gì?
lukeed/klona (lukeed/klona) là dự án JavaScript trên GitHub. Theo mô tả gốc: A tiny (240B to 501B) and fast utility to "deep clone" Objects, Arrays, Dates, RegExps, and more!
lukeed/klona viết bằng ngôn ngữ gì?
lukeed/klona chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc klona có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về klona.