{
  "name": "difflet",
  "description": "colorful diffs for javascript objects",
  "version": "0.2.6",
  "repository": {
    "type": "git",
    "url": "git://github.com/substack/difflet.git"
  },
  "main": "index.js",
  "keywords": [
    "diff",
    "object",
    "compare"
  ],
  "directories": {
    "lib": ".",
    "example": "example",
    "test": "test"
  },
  "scripts": {
    "test": "tap test/*.js"
  },
  "dependencies": {
    "traverse": "0.6.x",
    "charm": "0.1.x",
    "deep-is": "0.1.x"
  },
  "devDependencies": {
    "tap": "0.1.x",
    "ent": "0.0.x"
  },
  "engines": {
    "node": ">=0.4.0"
  },
  "license": "MIT",
  "author": {
    "name": "James Halliday",
    "email": "mail@substack.net",
    "url": "http://substack.net"
  },
  "readme": "difflet\n=======\n\nCreate colorful diffs for javascript objects.\n\nexample\n=======\n\nstring.js\n---------\n\n``` js\nvar difflet = require('difflet');\n\nvar s = difflet.compare({ a : 2, c : 5 }, { a : 3, b : 4 });\nprocess.stdout.write(s);\n```\n\noutput:\n\n![colorful output](http://substack.net/images/screenshots/difflet_string.png)\n\ncolors.js\n---------\n\n``` js\nvar diff = require('difflet')({ indent : 2 });\n\nvar prev = {\n    yy : 6,\n    zz : 5,\n    a : [1,2,3],\n    fn : 'beep',\n    c : { x : 7, z : 3 }\n};\n\nvar next = {\n    a : [ 1, 2, \"z\", /beep/, new Buffer(3) ],\n    fn : function qqq () {},\n    b : [5,6,7],\n    c : { x : 8, y : 5 }\n};\n\ndiff(prev, next).pipe(process.stdout);\n```\n\noutput:\n\n![colorful output](http://substack.net/images/screenshots/difflet_colors.png)\n\ngreen for inserts, blue for updates, red for deletes\n\nmethods\n=======\n\nvar difflet = require('difflet')\n\nvar diff = difflet(opts={})\n---------------------------\n\nCreate a difflet from optional options `opts`.\n\nWith `opts.start(type, stream)` and `opts.stop(type, stream)`,\nyou can write custom handlers for all the types of differences:\n`'inserted'`, `'updated'`, and `'deleted'`.\nBy default green is used for insertions, blue for updates, and red for\ndeletions.\n\nIf `opts.indent` is set, output will span multiple lines and `opts.indent`\nspaces will be used for leading whitespace.\n\nIf `opts.comma === 'first'` then commas will be placed at the start of lines.\n\nSetting `opts.comment` to `true` will turn on comments with the previous\ncontents like this:\n\n![object comments](http://substack.net/images/screenshots/difflet_object_comments.png)\n\ndiff(prev, next)\n----------------\n\nReturn a stream with the colorful changes between objects `prev` and `next`.\n\ndiff.compare(prev, next)\n------------------------\n\nReturn a string with the colorful changes between `prev` and `next`.\n\ndifflet.compare(prev, next)\n---------------------------\n\nReturn a string with the colorful changes between `prev` and `next` with the\ndefault options.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install difflet\n```\n\ntest\n====\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm test\n```\n\nlicense\n=======\n\nMIT/X11\n",
  "readmeFilename": "README.markdown",
  "bugs": {
    "url": "https://github.com/substack/difflet/issues"
  },
  "_id": "difflet@0.2.6",
  "dist": {
    "shasum": "ab23b31f5649b6faa8e3d2acbd334467365ca6fa",
    "tarball": "http://registry.npmjs.org/difflet/-/difflet-0.2.6.tgz"
  },
  "_from": "difflet@~0.2.0",
  "_npmVersion": "1.3.0",
  "_npmUser": {
    "name": "substack",
    "email": "mail@substack.net"
  },
  "maintainers": [
    {
      "name": "substack",
      "email": "mail@substack.net"
    }
  ],
  "_shasum": "ab23b31f5649b6faa8e3d2acbd334467365ca6fa",
  "_resolved": "https://registry.npmjs.org/difflet/-/difflet-0.2.6.tgz",
  "homepage": "https://github.com/substack/difflet"
}
