stringify-clone
Advanced tools
Comparing version 1.1.1 to 2.0.0
{ | ||
"version": "1.1.1", | ||
"name": "stringify-clone", | ||
@@ -7,5 +6,8 @@ "description": "Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`", | ||
"homepage": "https://github.com/ahmadnassri/stringify-clone", | ||
"repository": "ahmadnassri/stringify-clone", | ||
"license": "MIT", | ||
"main": "./src/index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ahmadnassri/stringify-clone.git" | ||
}, | ||
"license": "ISC", | ||
"main": "src/index.js", | ||
"keywords": [ | ||
@@ -15,3 +17,3 @@ "stringify-clone" | ||
"engines": { | ||
"node": ">=0.8" | ||
"node": ">= 4" | ||
}, | ||
@@ -25,22 +27,24 @@ "files": [ | ||
"scripts": { | ||
"pretest": "standard && echint", | ||
"test": "mocha", | ||
"posttest": "npm run coverage", | ||
"coverage": "istanbul cover --dir coverage _mocha -- -R dot", | ||
"codeclimate": "codeclimate < coverage/lcov.info" | ||
"compile": "babel -q src", | ||
"test": "tap test/*.js | tap-mocha-reporter spec", | ||
"pretest": "snazzy && echint", | ||
"coverage": "tap test/*.js --coverage", | ||
"codeclimate": "nyc report --reporter=text-lcov | codeclimate-test-reporter", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"echint": { | ||
"ignore": [ | ||
"coverage/**" | ||
] | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"devDependencies": { | ||
"codeclimate-test-reporter": "0.0.4", | ||
"echint": "^1.1.1", | ||
"istanbul": "^0.3.14", | ||
"mocha": "^2.2.5", | ||
"should": "^6.0.3", | ||
"standard": "^3.11.1" | ||
"codeclimate-test-reporter": "^0.4.0", | ||
"cz-conventional-changelog": "^1.2.0", | ||
"echint": "^1.5.3", | ||
"semantic-release": "^6.3.1", | ||
"snazzy": "^5.0.0", | ||
"tap": "^8.0.0", | ||
"tap-mocha-reporter": "^3.0.0" | ||
}, | ||
"dependencies": {} | ||
} | ||
"version": "2.0.0" | ||
} |
# Stringify Clone [![version][npm-version]][npm-url] [![License][npm-license]][license-url] | ||
Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`. see [Benchmarks](https://github.com/ahmadnassri/node-clone-benchmark). | ||
> Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`. see [Benchmarks](https://github.com/ahmadnassri/node-clone-benchmark). | ||
[![Build Status][travis-image]][travis-url] | ||
[![Downloads][npm-downloads]][npm-url] | ||
[![Code Climate][codeclimate-quality]][codeclimate-url] | ||
[![Coverage Status][codeclimate-coverage]][codeclimate-url] | ||
[![Dependency Status][dependencyci-image]][dependencyci-url] | ||
[![Dependencies][david-image]][david-url] | ||
**Notes**: | ||
@@ -12,12 +19,6 @@ | ||
[![Build Status][travis-image]][travis-url] | ||
[![Downloads][npm-downloads]][npm-url] | ||
[![Code Climate][codeclimate-quality]][codeclimate-url] | ||
[![Coverage Status][codeclimate-coverage]][codeclimate-url] | ||
[![Dependencies][david-image]][david-url] | ||
## Install | ||
```sh | ||
npm install --save stringify-clone | ||
```bash | ||
npm install --production --save stringify-clone | ||
``` | ||
@@ -37,17 +38,10 @@ | ||
## Support | ||
---- | ||
> :copyright: [www.ahmadnassri.com](https://www.ahmadnassri.com/) · | ||
> License: [ISC][license-url] · | ||
> Github: [@ahmadnassri](https://github.com/ahmadnassri) · | ||
> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri) | ||
Donations are welcome to help support the continuous development of this project. | ||
[license-url]: http://choosealicense.com/licenses/isc/ | ||
[![Gratipay][gratipay-image]][gratipay-url] | ||
[![PayPal][paypal-image]][paypal-url] | ||
[![Flattr][flattr-image]][flattr-url] | ||
[![Bitcoin][bitcoin-image]][bitcoin-url] | ||
## License | ||
[MIT](LICENSE) © [Ahmad Nassri](https://www.ahmadnassri.com) | ||
[license-url]: https://github.com/ahmadnassri/stringify-clone/blob/master/LICENSE | ||
[travis-url]: https://travis-ci.org/ahmadnassri/stringify-clone | ||
@@ -68,12 +62,3 @@ [travis-image]: https://img.shields.io/travis/ahmadnassri/stringify-clone.svg?style=flat-square | ||
[gratipay-url]: https://www.gratipay.com/ahmadnassri/ | ||
[gratipay-image]: https://img.shields.io/gratipay/ahmadnassri.svg?style=flat-square | ||
[paypal-url]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UJ2B2BTK9VLRS&on0=project&os0=stringify-clone | ||
[paypal-image]: http://img.shields.io/badge/paypal-donate-green.svg?style=flat-square | ||
[flattr-url]: https://flattr.com/submit/auto?user_id=ahmadnassri&url=https://github.com/ahmadnassri/stringify-clone&title=stringify-clone&language=&tags=github&category=software | ||
[flattr-image]: http://img.shields.io/badge/flattr-donate-green.svg?style=flat-square | ||
[bitcoin-image]: http://img.shields.io/badge/bitcoin-1Nb46sZRVG3or7pNaDjthcGJpWhvoPpCxy-green.svg?style=flat-square | ||
[bitcoin-url]: https://www.coinbase.com/checkouts/ae383ae6bb931a2fa5ad11cec115191e?name=stringify-clone | ||
[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/stringify-clone | ||
[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/stringify-clone/badge?style=flat-square |
@@ -1,5 +0,3 @@ | ||
'use strict' | ||
module.exports = function (obj) { | ||
return JSON.parse(JSON.stringify(obj)) | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
4608
7
3
62