UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

90 lines (89 loc) 4.22 kB
{ "_args": [ [ "difflet@~0.2.0", "/home/webs/dev/prj/compoundjsEX4/compound-ex4/node_modules/tap" ] ], "_from": "difflet@>=0.2.0 <0.3.0", "_id": "difflet@0.2.6", "_inCache": true, "_installable": true, "_location": "/difflet", "_npmUser": { "email": "mail@substack.net", "name": "substack" }, "_npmVersion": "1.3.0", "_phantomChildren": {}, "_requested": { "name": "difflet", "raw": "difflet@~0.2.0", "rawSpec": "~0.2.0", "scope": null, "spec": ">=0.2.0 <0.3.0", "type": "range" }, "_requiredBy": [ "/tap" ], "_shrinkwrap": null, "_spec": "difflet@~0.2.0", "_where": "/home/webs/dev/prj/compoundjsEX4/compound-ex4/node_modules/tap", "author": { "email": "mail@substack.net", "name": "James Halliday", "url": "http://substack.net" }, "bugs": { "url": "https://github.com/substack/difflet/issues" }, "dependencies": { "charm": "0.1.x", "deep-is": "0.1.x", "traverse": "0.6.x" }, "description": "colorful diffs for javascript objects", "devDependencies": { "ent": "0.0.x", "tap": "0.1.x" }, "directories": { "example": "example", "lib": ".", "test": "test" }, "dist": { "shasum": "ab23b31f5649b6faa8e3d2acbd334467365ca6fa", "tarball": "http://registry.npmjs.org/difflet/-/difflet-0.2.6.tgz" }, "engines": { "node": ">=0.4.0" }, "homepage": "https://github.com/substack/difflet#readme", "keywords": [ "compare", "diff", "object" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "substack", "email": "mail@substack.net" } ], "name": "difflet", "optionalDependencies": {}, "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", "repository": { "type": "git", "url": "git://github.com/substack/difflet.git" }, "scripts": { "test": "tap test/*.js" }, "version": "0.2.6" }