{"name":"assertion-error-formatter","version":"1.0.1","main":"lib/index.js","scripts":{"build":"babel src -d lib --ignore '**/*_test.js' --retain-lines","lint":"yarn run lint-js && yarn run lint-dependencies","lint-dependencies":"dependency-lint","lint-js":"eslint src/** test/test_helper.js","prepublish":"yarn run build","test":"yarn run lint && yarn run unit-test","unit-test":"mocha src"},"repository":{"type":"git","url":"git+https://github.com/charlierudolph/node-assertion-error-formatter.git"},"author":{"name":"Charlie Rudolph","email":"charles.w.rudolph@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/charlierudolph/node-assertion-error-formatter/issues"},"homepage":"https://github.com/charlierudolph/node-assertion-error-formatter","devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-eslint":"^7.1.1","babel-preset-es2015":"^6.18.0","babel-register":"^6.18.0","chai":"^3.5.0","dependency-lint":"^4.3.0","eslint":"^3.7.0","eslint-plugin-babel":"^4.0.0","mocha":"^3.2.0","sinon":"^1.17.6","sinon-chai":"^2.8.0"},"dependencies":{"diff":"^3.0.0","pad-right":"^0.2.2","repeat-string":"^1.6.1"},"gitHead":"1ae44232542520094997fc882a214101750a768d","description":"Format errors to display a diff between the actual and expected","_id":"assertion-error-formatter@1.0.1","_shasum":"d02c2cb30d55e95c3dbe9b1c1f5097bab7624162","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"},"dist":{"shasum":"d02c2cb30d55e95c3dbe9b1c1f5097bab7624162","tarball":"http://registry-npm.ywwl.com/assertion-error-formatter/download/assertion-error-formatter-1.0.1.tgz","integrity":"sha512-z1UE2k5JzA/234z3AVOdRUEGrlocUB2+CK19pi2XSTBetlW+aHms8Gc84pt68EXS+AP4s+Cu3a5qaNxM8hwyBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv2qiitveBDWC3BAri6n/A557Wuu05FZ2PHkIOgDZC1gIhALF6/G+8Yu6ZUpm4H447JI0mQ8mqsvMcvPtdEIH4uybl"}],"size":29350,"noattachment":false,"key":"/assertion-error-formatter/-/assertion-error-formatter-1.0.1.tgz"},"maintainers":[{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/assertion-error-formatter-1.0.1.tgz_1482356569175_0.44303233502432704"},"directories":{},"readme":"# Node Assertion Error Formatter\n\nFormat errors to display a diff between the actual and expected\n\nOriginally extracted from [mocha](https://github.com/mochajs/mocha)\n\n## Usage\n```js\nimport {format} from 'assertion-error-formatter'\n\nformat(error)\n```\n\n## API Reference\n\n#### `format(error [, options])`\n\n* `error`: a javascript error\n* `options`: An object with the following keys:\n  * `colorFns`: An object with the keys 'diffAdded', 'diffRemoved', 'errorMessage', 'errorStack'. The values are functions to colorize a string, each defaults to identity.\n  * `inlineDiff`: boolean (default: false)\n    * toggle between inline and unified diffs\n","publish_time":1482356571187,"_cnpm_publish_time":1482356571187,"dist-tags":{"latest":"3.0.0"}}