{"_id":"assertion-error-formatter","_rev":"9-ef0a023b56c9d940071c00e2a467f4ea","name":"assertion-error-formatter","description":"Format errors to display a diff between the actual and expected","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"assertion-error-formatter","version":"1.0.0","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":"d16fb3e3b3875ef2957874e70f61d20ca9be3ea5","description":"Format errors to display a diff between the actual and expected","_id":"assertion-error-formatter@1.0.0","_shasum":"c643798da4787f006231c55dfdcb84734d7e548b","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"},"dist":{"shasum":"c643798da4787f006231c55dfdcb84734d7e548b","tarball":"https://registry.npmjs.org/assertion-error-formatter/-/assertion-error-formatter-1.0.0.tgz","integrity":"sha512-BXGM2ngitPeQV4ufU+LPZrm1fGEtEMuBJLS+Zam6WNRHCaDYzEyblpLgVWCo7QNcCcaGEdrPHcTnRvw6q7D2YA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYP5HVPNJsViyCl5fvMCICK8cRoKq8DuIQOnGORx4ynwIgPBLCj005llLnS5jk8Iax7OhmUyLsxFpe0VC+A6zFN0k="}]},"maintainers":[{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/assertion-error-formatter-1.0.0.tgz_1482356434552_0.3426275241654366"},"directories":{}},"1.0.1":{"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":"https://registry.npmjs.org/assertion-error-formatter/-/assertion-error-formatter-1.0.1.tgz","integrity":"sha512-z1UE2k5JzA/234z3AVOdRUEGrlocUB2+CK19pi2XSTBetlW+aHms8Gc84pt68EXS+AP4s+Cu3a5qaNxM8hwyBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv2qiitveBDWC3BAri6n/A557Wuu05FZ2PHkIOgDZC1gIhALF6/G+8Yu6ZUpm4H447JI0mQ8mqsvMcvPtdEIH4uybl"}]},"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":{}},"1.0.2":{"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":"https://registry.npmjs.org/assertion-error-formatter/-/assertion-error-formatter-1.0.2.tgz","integrity":"sha512-1vsb3TUSMdrdxzNcq9neqfOBDiTW1rbvM6zsPaJWzMT7ZJQi7OgJj38UZpN/dk2HeHDbffIFTlTsKC0+yY9mQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCY4S9XZCgJKbkhSrHMzrDkJfJZr9SLHsCHrgzb1EqewIgfv/1Go1E0dI7UybR7w17CNSuqZngH+qOSQTentRJI+8="}]},"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":{}},"2.0.0":{"name":"assertion-error-formatter","version":"2.0.0","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":"82b361a5efc85cdffb89146ab6044fd356e76536","description":"Format errors to display a diff between the actual and expected","_id":"assertion-error-formatter@2.0.0","_shasum":"17a24289cc8440889b54318e6d1187ebee2d5494","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"},"dist":{"shasum":"17a24289cc8440889b54318e6d1187ebee2d5494","tarball":"https://registry.npmjs.org/assertion-error-formatter/-/assertion-error-formatter-2.0.0.tgz","integrity":"sha512-T9SGoaabrKf972ItJd6o3YRvXC4f1WTETGU0T+J49CBeIj3MxCUN6eNnTePm9VSwRwe1GIrpITId0ZahMNvf1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBefU0+QmInlLXY1zxRf4TEo8ac4RZe/sW/4XqcRrLBgIgYcerHux2KPIFk2pTIR/lxbE1giPT94tPt45Ri34hSvY="}]},"maintainers":[{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/assertion-error-formatter-2.0.0.tgz_1482371877712_0.16381223849020898"},"directories":{}},"2.0.1":{"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":"https://registry.npmjs.org/assertion-error-formatter/-/assertion-error-formatter-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR8DjJmI/0Qkjk3vCp+FPMZEbYOe/Uj6OiQvs9ZRhl5QIhAMaW3o9uL+ziMdv6Dxr5r6ygDy0k/XqRuUcdrxswcaf9"}]},"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":{}},"3.0.0":{"name":"assertion-error-formatter","version":"3.0.0","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":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/register":"^7.5.5","babel-eslint":"^10.0.2","chai":"^4.2.0","dependency-lint":"^6.0.0","eslint":"~6.1.0","eslint-config-prettier":"^6.1.0","eslint-config-standard":"^14.0.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^9.1.0","eslint-plugin-prettier":"^3.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mocha":"^6.2.0","prettier":"^1.18.2","sinon":"^7.4.1","sinon-chai":"^3.3.0"},"dependencies":{"diff":"^4.0.1","pad-right":"^0.2.2","repeat-string":"^1.6.1"},"gitHead":"8229de7f4a32bb72766fdb287aa537414e081af0","description":"Format errors to display a diff between the actual and expected","_id":"assertion-error-formatter@3.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-6YyAVLrEze0kQ7CmJfUgrLHb+Y7XghmL2Ie7ijVa2Y9ynP3LV+VDiwFk62Dn0qtqbmY0BT0ss6p1xxpiF2PYbQ==","shasum":"be9c8825dee6a8a6c72183d915912d9b57d5d265","tarball":"https://registry.npmjs.org/assertion-error-formatter/-/assertion-error-formatter-3.0.0.tgz","fileCount":16,"unpackedSize":24642,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXNdECRA9TVsSAnZWagAAsPAP/1dPMwzVnCVEa+vc3VIG\nEIgoFlwJEBentUKTepdQ1wf9wMkkySdo4Z+7iFN8x1aLuf5e2GsoqRV289uA\n/hARjiG4sk7RBIYVEgMvZOhnHIKHQ1NcvnwZXdWjZGKk4TLA7etjzTOZBf3H\nNSV0b0suTfkWzeAWZqnzbmQBMjfmGgzq002mrgvNLoP5ldXsSvP6tTxFAGqN\n/jf74FONgfgI5/qdqWcXO454Tpk6A/jox6+KPzGy/Zix4dRymlOOS/7s7yNO\nMfTjsJ9a+U8SX89669bPb33KDAZAWLG+kv3fNo3yvN9pL4BmWxK989oCIo70\n+riF8v0wug6mLVgX/Eh9eSe8DAeZVtComnPkrLThqtE6Oed74oKuANXQpq6N\nuzUryYcJXGSDT8e8lehTbK00JmmZkS/Ljx5M1UgXnQ82iBYO1l/EoeokJvBq\nL1vS1743xIM76azUMvJn1Gf/Vk/6ArAcCbGi+nKQEnxtO7qZOIFVRbGodNxQ\nRq5KSr23eMZ4h4MQWqHD1veCNbFmeBdOtJRLoLBvOXCR7gGOV8e2EONL3RxG\nUf+dnsMYWtbWT9hDUSi0JH+Ekw21UmEn028+bI9x11/3IQxP6zu7T+ZqpEm2\n4EP14CAj6NYJZaxEemNmPKwWlY4DBQ6emcNHIOEEGykVU8fkO2y+0mJ1KBi8\n/dbL\r\n=ayTT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHH9klBdgl34M5gieu/1r7xqvjXHNBqtVbrsndqZyR+BAiEAoBGNyMYdJCk0hDpI3dq2OfSL7PL+ou7WCR7fEd0rGc4="}]},"maintainers":[{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"}],"_npmUser":{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assertion-error-formatter_3.0.0_1566365508110_0.46962756163094577"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"charlierudolph","email":"charles.w.rudolph@gmail.com"}],"time":{"modified":"2022-06-13T03:33:52.479Z","created":"2016-12-21T21:40:36.394Z","1.0.0":"2016-12-21T21:40:36.394Z","1.0.1":"2016-12-21T21:42:51.187Z","1.0.2":"2016-12-21T22:35:37.640Z","2.0.0":"2016-12-22T01:57:58.515Z","2.0.1":"2017-11-27T15:31:13.788Z","3.0.0":"2019-08-21T05:31:48.215Z"},"homepage":"https://github.com/charlierudolph/node-assertion-error-formatter","repository":{"type":"git","url":"git+https://github.com/charlierudolph/node-assertion-error-formatter.git"},"author":{"name":"Charlie Rudolph","email":"charles.w.rudolph@gmail.com"},"bugs":{"url":"https://github.com/charlierudolph/node-assertion-error-formatter/issues"},"license":"MIT","readmeFilename":"README.md"}