1.0.3 • Published 6 years ago

clone-data v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Readme

Clone JS Objects without worrying about Circular data and key names not suitable for MongoDB

Details here

Use

npm install clone-data

const cloneData = require('clone-data');
...
let myData = cloneData.clone(oldData);

// encode / decode
let query = { $ne: true };
query = cloneData.encode(query); // { [$]ne: true }
query = cloneData.decode(query); // { $ne: true }

Origin

The code is based (or copied from):

https://github.com/winstonjs/winston-mongodb/blob/f0095206e9c27e903bd7e896822633bf47601030/lib/helpers.js

Original author

The original author for that code is Yurij Mikhalevich

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.1-2

6 years ago

1.0.1-1

6 years ago

1.0.1-0

6 years ago

0.1.2-0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago