# lite-clone

> A simple nodejs module for deep cloning objects.

Latest version **0.0.4** (published 2015-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install lite-clone
pnpm add lite-clone
yarn add lite-clone
bun add lite-clone
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-11-06 |
| First published | 2015-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ivan Matvieiev |
| Maintainers | imatveev |
| Keywords | clone, cloning, object, lite, deep |

## Links

- npm: https://www.npmjs.com/package/lite-clone
- Repository: https://github.com/imatveev/lite-clone
- Homepage: https://github.com/imatveev/lite-clone#readme
- Issues: https://github.com/imatveev/lite-clone/issues
- npm.io page: https://npm.io/package/lite-clone

## Recent versions

- 0.0.4 (latest) — 2015-11-06
- 0.0.3 — 2015-06-30
- 0.0.2 — 2015-06-30

## README

# lite-clone
[![Build Status](https://travis-ci.org/imatveev/lite-clone.svg?branch=master)](https://travis-ci.org/imatveev/lite-clone)<br />
A simple nodejs module for deep cloning of objects.
## Installation
    npm install lite-clone
## When should I use lite-clone?
You need to make a copy of your object by value, not by reference.
## API
    var clone = require('lite-clone');
### clone(obj)
Copying object by value. obj - JavaScript object, that need to be copied.

    var clone = require('lite-clone');
    var obj = {a:3, b:2};
    var newObj = clone(obj);
## Examples

Copy object by value

    var id = require('lite-clone');
    var obj = {a:3, b:2};
    var newObj = clone(obj);
    obj.a = 7;
    console.log(obj);
    //{a:7, b:2}
    console.log(newObj);
    //{a:3, b:2}

---
_Source: https://npm.io/package/lite-clone · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
