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

variable-diff

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

variable-diff - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

index.d.ts

9

package.json
{
"name": "variable-diff",
"version": "2.0.1",
"version": "2.0.2",
"description": "Visual diff between javascript variables",
"main": "index.js",
"main": "index",
"types": "index.d.ts",
"dependencies": {
"chalk": "^1.1.1"
"chalk": "^4.1.0"
},
"devDependencies": {
"tap": "^14.6.5"
"tap": "^14.10.8"
},

@@ -12,0 +13,0 @@ "scripts": {

@@ -16,2 +16,6 @@ # variable-diff

var result = diff({ a: 1, b: 2, d: 'hello' }, { a: 8, b: 2, c: 4});
console.log(result.text);
// You can pass all or some of these options
var defaultOptions = {

@@ -26,4 +30,3 @@ indent: ' ',

var result = diff({ a: 1, b: 2, d: 'hello' }, { a: 8, b: 2, c: 4}, defaultOptions);
console.log(result.text);
diff({ a: 1, b: 2, d: 'hello' }, { a: 8, b: 2, c: 4}, defaultOptions)
```

@@ -30,0 +33,0 @@

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