{"name":"assertion-error-formatter","version":"1.0.2","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"},"files":["lib"],"gitHead":"25d42c02f209d25e591149a603193179201f74de","description":"Format errors to display a diff between the actual and expected","_id":"assertion-error-formatter@1.0.2","_shasum":"38ecf68ae92f5e9e1069f11d711854f84143a2ab","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"},"dist":{"shasum":"38ecf68ae92f5e9e1069f11d711854f84143a2ab","tarball":"http://registry-npm.ywwl.com/assertion-error-formatter/download/assertion-error-formatter-1.0.2.tgz","integrity":"sha512-1vsb3TUSMdrdxzNcq9neqfOBDiTW1rbvM6zsPaJWzMT7ZJQi7OgJj38UZpN/dk2HeHDbffIFTlTsKC0+yY9mQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCY4S9XZCgJKbkhSrHMzrDkJfJZr9SLHsCHrgzb1EqewIgfv/1Go1E0dI7UybR7w17CNSuqZngH+qOSQTentRJI+8="}],"size":4245,"noattachment":false,"key":"/assertion-error-formatter/-/assertion-error-formatter-1.0.2.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.2.tgz_1482359735499_0.06023512873798609"},"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":1482359737640,"_cnpm_publish_time":1482359737640,"dist-tags":{"latest":"3.0.0"}}