Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stringify-clone

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stringify-clone - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

index.js

43

package.json
{
"version": "2.0.1",
"name": "stringify-clone",

@@ -10,12 +11,13 @@ "description": "Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`",

},
"license": "ISC",
"main": "src/index.js",
"license": "MIT",
"main": "index.js",
"keywords": [
"stringify-clone"
"stringify",
"clone"
],
"engines": {
"node": ">= 4"
"node": ">=6"
},
"files": [
"src"
"index.js"
],

@@ -26,24 +28,13 @@ "bugs": {

"scripts": {
"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"
"lint:deps": "npx updated",
"lint:ec": "npx editorconfig-checker .",
"lint:js": "npx eslint .",
"lint:md": "npx remark --quiet --frail .",
"lint": "npx run-p lint:*",
"open:coverage": "opener coverage/lcov-report/index.html",
"test": "tap test --100 --coverage-report=lcov --no-browser"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"devDependencies": {
"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"
},
"version": "2.0.0"
}
"tap": "^12.0.1"
}
}

@@ -1,15 +0,13 @@

# Stringify Clone [![version][npm-version]][npm-url] [![License][npm-license]][license-url]
# Stringify Clone
> Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`. see [Benchmarks](https://github.com/ahmadnassri/node-clone-benchmark).
[![License][license-image]][license-url] [![version][npm-image]][npm-url] [![Build Status][circle-image]][circle-url]
[![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]
> Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`
**IMPORTANT:**
> **THIS IS A [ONE LINE PACKAGE](./index.js), THERE IS NO REASON FOR YOU TO USE IT!**
**Notes**:
- cannot clone `RegExp` *(returns `{}`)*
- cannot clone `RegExp` _(returns `{}`)_
- `NaN` values will be converted to `null`

@@ -22,5 +20,7 @@ - `Date` objects will be converted to ISO strings (equivalent of running `Date.toISOString()`)

```bash
npm install --production --save stringify-clone
npm install stringify-clone
```
## Usage
## API

@@ -31,3 +31,3 @@

```js
var clone = require('stringify-clone')
const clone = require('stringify-clone')

@@ -39,26 +39,14 @@ clone({

----
> :copyright: [www.ahmadnassri.com](https://www.ahmadnassri.com/)  · 
> License: [ISC][license-url]  · 
> Github: [@ahmadnassri](https://github.com/ahmadnassri)  · 
> Twitter: [@ahmadnassri](https://twitter.com/ahmadnassri)
---
> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) •
> Github: [@ahmadnassri](https://github.com/ahmadnassri) •
> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)
[license-url]: http://choosealicense.com/licenses/isc/
[license-url]: LICENSE
[license-image]: https://img.shields.io/github/license/ahmadnassri/node-stringify-clone.svg?style=for-the-badge&logo=circleci
[travis-url]: https://travis-ci.org/ahmadnassri/stringify-clone
[travis-image]: https://img.shields.io/travis/ahmadnassri/stringify-clone.svg?style=flat-square
[circle-url]: https://circleci.com/gh/ahmadnassri/workflows/node-stringify-clone
[circle-image]: https://img.shields.io/circleci/project/github/ahmadnassri/node-stringify-clone/master.svg?style=for-the-badge&logo=circleci
[npm-url]: https://www.npmjs.com/package/stringify-clone
[npm-license]: https://img.shields.io/npm/l/stringify-clone.svg?style=flat-square
[npm-version]: https://img.shields.io/npm/v/stringify-clone.svg?style=flat-square
[npm-downloads]: https://img.shields.io/npm/dm/stringify-clone.svg?style=flat-square
[codeclimate-url]: https://codeclimate.com/github/ahmadnassri/stringify-clone
[codeclimate-quality]: https://img.shields.io/codeclimate/github/ahmadnassri/stringify-clone.svg?style=flat-square
[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/ahmadnassri/stringify-clone.svg?style=flat-square
[david-url]: https://david-dm.org/ahmadnassri/stringify-clone
[david-image]: https://img.shields.io/david/ahmadnassri/stringify-clone.svg?style=flat-square
[dependencyci-url]: https://dependencyci.com/github/ahmadnassri/stringify-clone
[dependencyci-image]: https://dependencyci.com/github/ahmadnassri/stringify-clone/badge?style=flat-square
[npm-image]: https://img.shields.io/npm/v/stringify-clone.svg?style=for-the-badge&logo=npm

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc