ptz-copy
Version:
ptz-copy allows you to copy javascripts objects
61 lines (39 loc) • 1.26 kB
Markdown
# ptz-copy
================
[](https://travis-ci.org/angeloocana/ptz-copy)
[](https://www.npmjs.com/package/ptz-copy)
[](http://codecov.io/github/angeloocana/ptz-copy)
[](https://gemnasium.com/angeloocana/ptz-copy)
[](https://www.bithound.io/github/angeloocana/ptz-copy)

> ptz-copy is a javascript library for coping objects
>
> Be welcome to learn, help and play!!!
## Install
Install with npm:
```bash
$ npm install ptz-copy --save
```
or clone from github:
```bash
$ git clone https://github.com/angeloocana/ptz-copy.git
```
## Setup
```bash
$ npm install
$ typings install
```
*Add to your typings/index.d.ts
```ts
/// <reference path="../node_modules/ptz-copy/src/typings/index.d.ts" />
```
## Test
```bash
$ npm test
```
## Usage
```js
import copy from "ptz-copy";
let obj = {say:"Hi!"};
let newObj = copy(obj);
```