{"name":"assertion-error-formatter","version":"2.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"},"files":["lib"],"gitHead":"bb9852696aab84b496e6b4f3b89eedaddc033c56","description":"Format errors to display a diff between the actual and expected","_id":"assertion-error-formatter@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"},"dist":{"integrity":"sha512-cjC3jUCh9spkroKue5PDSKH5RFQ/KNuZJhk3GwHYmB/8qqETxLOmMdLH+ohi/VukNzxDlMvIe7zScvLoOdhb6Q==","shasum":"6bbdffaec8e2fa9e2b0eb158bfe353132d7c0a9b","tarball":"http://registry-npm.ywwl.com/assertion-error-formatter/download/assertion-error-formatter-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR8DjJmI/0Qkjk3vCp+FPMZEbYOe/Uj6OiQvs9ZRhl5QIhAMaW3o9uL+ziMdv6Dxr5r6ygDy0k/XqRuUcdrxswcaf9"}],"size":4544,"noattachment":false,"key":"/assertion-error-formatter/-/assertion-error-formatter-2.0.1.tgz"},"maintainers":[{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assertion-error-formatter-2.0.1.tgz_1511796672842_0.8682443643920124"},"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":1511796673788,"_cnpm_publish_time":1511796673788,"dist-tags":{"latest":"3.0.0"}}