UNPKG

motion

Version:

motion - moving development forward

69 lines (68 loc) 4 kB
{ "_args": [ [ "eyes@https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "eyes@>=0.1.0 <0.2.0", "_id": "eyes@0.1.8", "_inCache": true, "_location": "/eyes", "_phantomChildren": {}, "_requested": { "name": "eyes", "raw": "eyes@https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "rawSpec": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "scope": null, "spec": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "type": "remote" }, "_requiredBy": [ "/winston" ], "_resolved": "https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "_shasum": "62cf120234c683785d902348a800ef3e0cc20bc0", "_shrinkwrap": null, "_spec": "eyes@https://registry.npmjs.org/eyes/-/eyes-0.1.8.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "self@cloudhead.net", "name": "Alexis Sellier" }, "contributors": [ { "name": "Charlie Robbins", "email": "charlie@nodejitsu.com" } ], "dependencies": {}, "description": "a customizable value inspector", "devDependencies": {}, "directories": { "lib": "./lib", "test": "./test" }, "engines": { "node": "> 0.1.90" }, "keywords": [ "debug", "inspect", "inspector", "print" ], "licenses": [ "MIT" ], "main": "./lib/eyes", "name": "eyes", "optionalDependencies": {}, "readme": "eyes\n====\n\na customizable value inspector for Node.js\n\nsynopsis\n--------\n\nI was tired of looking at cluttered output in the console -- something needed to be done,\n`sys.inspect()` didn't display regexps correctly, and was too verbose, and I had an hour or two to spare. \nSo I decided to have some fun. _eyes_ were born.\n\n![eyes-ss](http://dl.dropbox.com/u/251849/eyes-js-ss.gif)\n\n_example of the output of a user-customized eyes.js inspector_\n\n*eyes* also deals with circular objects in an intelligent way, and can pretty-print object literals.\n\nusage\n-----\n\n var inspect = require('eyes').inspector({styles: {all: 'magenta'}});\n\n inspect(something); // inspect with the settings passed to `inspector`\n\nor\n\n var eyes = require('eyes');\n\n eyes.inspect(something); // inspect with the default settings\n\nyou can pass a _label_ to `inspect()`, to keep track of your inspections:\n\n eyes.inspect(something, \"a random value\");\n\nIf you want to return the output of eyes without printing it, you can set it up this way:\n\n var inspect = require('eyes').inspector({ stream: null });\n\n sys.puts(inspect({ something: 42 }));\n\ncustomization\n-------------\n\nThese are the default styles and settings used by _eyes_.\n\n styles: { // Styles applied to stdout\n all: 'cyan', // Overall style applied to everything\n label: 'underline', // Inspection labels, like 'array' in `array: [1, 2, 3]`\n other: 'inverted', // Objects which don't have a literal representation, such as functions\n key: 'bold', // The keys in object literals, like 'a' in `{a: 1}`\n special: 'grey', // null, undefined...\n string: 'green',\n number: 'magenta',\n bool: 'blue', // true false\n regexp: 'green', // /\\d+/\n },\n \n pretty: true, // Indent object literals\n hideFunctions: false, // Don't output functions at all\n stream: process.stdout, // Stream to write to, or null\n maxLength: 2048 // Truncate output if longer\n\nYou can overwrite them with your own, by passing a similar object to `inspector()` or `inspect()`.\n\n var inspect = require('eyes').inspector({\n styles: {\n all: 'magenta',\n special: 'bold'\n },\n maxLength: 512\n });\n\n", "readmeFilename": "README.md", "scripts": { "test": "node test/*-test.js" }, "url": "http://github.com/cloudhead/eyes.js", "version": "0.1.8" }