{"_id":"diffable-html","_rev":"3318183","name":"diffable-html","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"time":{"modified":"2024-06-11T08:57:32.000Z","created":"2017-04-18T09:46:29.381Z","5.0.0":"2021-10-19T14:22:51.477Z","4.1.0":"2021-07-13T11:53:46.921Z","4.0.0":"2018-12-31T07:22:10.356Z","3.0.0":"2018-01-03T11:31:32.401Z","2.1.0":"2017-05-27T12:42:50.345Z","2.0.1":"2017-05-18T16:22:22.615Z","2.0.0":"2017-05-18T15:47:19.131Z","1.0.0":"2017-04-18T10:04:46.760Z","0.2.0":"2017-04-18T09:54:59.364Z","0.1.0":"2017-04-18T09:46:29.381Z"},"users":{},"author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"versions":{"5.0.0":{"name":"diffable-html","version":"5.0.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog --preset angular --infile CHANGELOG.md --same-file","changelog:unreleased":"conventional-changelog --preset angular --output-unreleased"},"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","conventional-changelog-cli":"^1.3.5","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"8da6f8e8ee986561e43ade3d83f7496542b5e886","_id":"diffable-html@5.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"8ab0d723e45e07369c2be25c6691373b81424916","size":3932,"noattachment":false,"key":"/diffable-html/-/diffable-html-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-5.0.0.tgz"},"_npmUser":{"name":"haroenv","email":"hello@haroen.me"},"directories":{},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diffable-html_5.0.0_1634653371332_0.36298517013138487"},"_hasShrinkwrap":false,"publish_time":1634653371477,"_cnpm_publish_time":1634653371477,"_cnpmcore_publish_time":"2021-12-16T20:25:40.807Z"},"4.1.0":{"name":"diffable-html","version":"4.1.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog --preset angular --infile CHANGELOG.md --same-file","changelog:unreleased":"conventional-changelog --preset angular --output-unreleased"},"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","conventional-changelog-cli":"^1.3.5","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"73b0aa3d4857b38dcd6e407d59987c2534c2c5d9","_id":"diffable-html@4.1.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"shasum":"e7a2d1de187c4e23a59751b4e4c17483a058c696","size":3948,"noattachment":false,"key":"/diffable-html/-/diffable-html-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-4.1.0.tgz"},"_npmUser":{"name":"eunjae-lee","email":"karis612@gmail.com"},"directories":{},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diffable-html_4.1.0_1626177226810_0.791607197622302"},"_hasShrinkwrap":false,"publish_time":1626177226921,"_cnpm_publish_time":1626177226921,"_cnpmcore_publish_time":"2021-12-16T20:25:41.039Z"},"4.0.0":{"name":"diffable-html","version":"4.0.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog --preset angular --infile CHANGELOG.md --same-file","changelog:unreleased":"conventional-changelog --preset angular --output-unreleased"},"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","conventional-changelog-cli":"^1.3.5","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"05fdc4e0402f9ff70fe68ae3750e8279b48e1a52","_id":"diffable-html@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.4.0","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"eb44a189785115bacd04829f31658fcd3c0ce590","size":3831,"noattachment":false,"key":"/diffable-html/-/diffable-html-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-4.0.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diffable-html_4.0.0_1546240930260_0.9068623823074131"},"_hasShrinkwrap":false,"publish_time":1546240930356,"_cnpm_publish_time":1546240930356,"_cnpmcore_publish_time":"2021-12-16T20:25:41.281Z"},"3.0.0":{"name":"diffable-html","version":"3.0.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog --preset angular --infile CHANGELOG.md --same-file","changelog:unreleased":"conventional-changelog --preset angular --output-unreleased"},"files":["dist"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","conventional-changelog-cli":"^1.3.5","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"e7246f074790aa964e98aef01b6f4952be427bf8","_id":"diffable-html@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.7.0","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"3766be8bcf6e90e061bdc321e04e14fc0630853f","size":3655,"noattachment":false,"key":"/diffable-html/-/diffable-html-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-3.0.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diffable-html-3.0.0.tgz_1514979091448_0.7951549673452973"},"directories":{},"publish_time":1514979092401,"_hasShrinkwrap":false,"_cnpm_publish_time":1514979092401,"_cnpmcore_publish_time":"2021-12-16T20:25:41.672Z"},"2.1.0":{"name":"diffable-html","version":"2.1.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"files":["dist","index.js"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"21f30549ed186c037340581cdaf0959b35d3683f","_id":"diffable-html@2.1.0","_shasum":"0d4c2de115ac58f904aab1b72e6649cefca5f025","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"0d4c2de115ac58f904aab1b72e6649cefca5f025","size":4026,"noattachment":false,"key":"/diffable-html/-/diffable-html-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-2.1.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/diffable-html-2.1.0.tgz_1495888969430_0.2011363971978426"},"directories":{},"publish_time":1495888970345,"_hasShrinkwrap":false,"_cnpm_publish_time":1495888970345,"_cnpmcore_publish_time":"2021-12-16T20:25:41.875Z"},"2.0.1":{"name":"diffable-html","version":"2.0.1","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"files":["dist","index.js"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"c88615f76e3c30b2b0ae14f6896ee378b46d5a7f","_id":"diffable-html@2.0.1","_shasum":"8f5e115f0c27e84a956c0a3278b4c5db7a8c49ec","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"8f5e115f0c27e84a956c0a3278b4c5db7a8c49ec","size":3961,"noattachment":false,"key":"/diffable-html/-/diffable-html-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-2.0.1.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/diffable-html-2.0.1.tgz_1495124541604_0.9316273001022637"},"directories":{},"publish_time":1495124542615,"_hasShrinkwrap":false,"_cnpm_publish_time":1495124542615,"_cnpmcore_publish_time":"2021-12-16T20:25:42.082Z"},"2.0.0":{"name":"diffable-html","version":"2.0.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s"},"files":["dist","index.js"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"07cd1118c21ae7c78b69bf4f764f021b0019dbc9","_id":"diffable-html@2.0.0","_shasum":"0f139b61c8fe4317888d58ed7afb824919824fa3","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"0f139b61c8fe4317888d58ed7afb824919824fa3","size":3789,"noattachment":false,"key":"/diffable-html/-/diffable-html-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-2.0.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/diffable-html-2.0.0.tgz_1495122437412_0.43529821233823895"},"directories":{},"publish_time":1495122439131,"_hasShrinkwrap":false,"_cnpm_publish_time":1495122439131,"_cnpmcore_publish_time":"2021-12-16T20:25:42.301Z"},"1.0.0":{"name":"diffable-html","version":"1.0.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose"},"files":["dist","index.js"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"cd72b04d7037aefabb3936ca33648113e15571d4","_id":"diffable-html@1.0.0","_shasum":"5a535f9d1e9133d4af92a2184f7e217e8679fdfb","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"5a535f9d1e9133d4af92a2184f7e217e8679fdfb","size":2534,"noattachment":false,"key":"/diffable-html/-/diffable-html-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-1.0.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/diffable-html-1.0.0.tgz_1492509884947_0.19748516893014312"},"directories":{},"publish_time":1492509886760,"_hasShrinkwrap":false,"_cnpm_publish_time":1492509886760,"_cnpmcore_publish_time":"2021-12-16T20:25:42.560Z"},"0.2.0":{"name":"diffable-html","version":"0.2.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose"},"files":["dist","index.js"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"82290eaa92123aa86249eb2c6debdcf7c99add93","_id":"diffable-html@0.2.0","_shasum":"aadfaeb7e06f06c9fdc9423376d3dcacd606328d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"aadfaeb7e06f06c9fdc9423376d3dcacd606328d","size":2537,"noattachment":false,"key":"/diffable-html/-/diffable-html-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-0.2.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/diffable-html-0.2.0.tgz_1492509298811_0.9943971149623394"},"directories":{},"publish_time":1492509299364,"_hasShrinkwrap":false,"_cnpm_publish_time":1492509299364,"_cnpmcore_publish_time":"2021-12-16T20:25:42.803Z"},"0.1.0":{"name":"diffable-html","version":"0.1.0","description":"Opinionated HTML formatter focused towards making HTML diffs readable.","main":"dist/diffable-html.js","author":{"name":"Raymond RUTJES","email":"raymond.rutjes@gmail.com","url":"https://github.com/rayrutjes/"},"license":"MIT","scripts":{"build":"rollup --config","build:watch":"rollup --config --watch","test":"jest --verbose"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/rayrutjes/diffable-html.git"},"keywords":["html","formatter","diff","diffable","jest","snapshot","serializer","snapshotSerializer","string","vue","vue.js","test","beautifier","js-beautify"],"bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"homepage":"https://github.com/rayrutjes/diffable-html#readme","dependencies":{"htmlparser2":"^3.9.2"},"devDependencies":{"babel-jest":"^19.0.0","babel-preset-es2015":"^6.24.1","jest":"^19.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-watch":"^3.2.2"},"gitHead":"ddc45b550e5940268aade08d50b74352f127d0e1","_id":"diffable-html@0.1.0","_shasum":"6f96c3e609aa04590a2c1d85764b77cc962861c8","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"},"dist":{"shasum":"6f96c3e609aa04590a2c1d85764b77cc962861c8","size":2338,"noattachment":false,"key":"/diffable-html/-/diffable-html-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/diffable-html/download/diffable-html-0.1.0.tgz"},"maintainers":[{"name":"dhaya.b","email":""},{"name":"eunjae-lee","email":"karis612@gmail.com"},{"name":"haroenv","email":""},{"name":"instantsearch-bot","email":""},{"name":"jasonberry","email":""},{"name":"rayrutjes","email":"raymond.rutjes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/diffable-html-0.1.0.tgz_1492508788829_0.18644716404378414"},"directories":{},"publish_time":1492508789381,"_hasShrinkwrap":false,"_cnpm_publish_time":1492508789381,"_cnpmcore_publish_time":"2021-12-16T20:25:43.145Z"}},"readme":"# Opinionated HTML formatter focused towards making HTML diffs readable.\n\n[![NPM version](https://badge.fury.io/js/diffable-html.svg)](https://yarnpkg.org/en/package/diffable-html)\n[![Build Status](https://travis-ci.org/rayrutjes/diffable-html.svg?branch=master)](https://travis-ci.org/rayrutjes/diffable-html)\n\nThis formatter will normalize your HTML in a way that when you diff it, you get a clear sense of what changed.\n\nThis is a \"zero-config\" and opinionated HTML formatter. Default rules might change in future releases in which case we will push a major release.\n\nFeel free to open issues to discuss better defaults.\n\nFormatting consists of:\n- indenting every level with 2 spaces\n- align attributes\n- put every opening and closing tag on its own line\n- trimming text nodes\n\n*Be aware that this plugin is intended for making HTML diffs more readable.\nWe took the compromise of not dealing with white-spaces like the browsers do.*\n\n## Install\n\nAdd the package as a dev-dependency:\n\n```bash\n# With npm\nnpm install --save-dev diffable-html\n\n# With yarn\nyarn add --dev diffable-html\n```\n\n\n## Example\n\n```js\nimport toDiffableHtml from 'diffable-html';\n\nconst html = `\n<div id=\"header\">\n  <h1>Hello World!</h1>\n  <ul id=\"main-list\" class=\"list\"><li><a href=\"#\">My HTML</a></li></ul>\n</div>\n`\n\nconsole.log(toDiffableHtml(html));\n```\n\nWill output:\n\n```html\n<div id=\"header\">\n  <h1>\n    Hello World!\n  </h1>\n  <ul\n    id=\"main-list\"\n    class=\"list\"\n  >\n    <li>\n      <a href=\"#\">\n        My HTML\n      </a>\n    </li>\n  </ul>\n</div>\n```\n\n## Yet another HTML formatting plugin?\n\nThis formatter was initially developed to address the lack of some features in [js-beautifier](https://github.com/beautify-web/js-beautify):\n\n- Put the inner content of each tag on its own line (beautify-web/js-beautify#980)\n- Put closing bracket on its own line (beautify-web/js-beautify#937)\n- Indent every text node\n\nThese features are needed to improve readability of HTML diffs.\n\n## Usage with Jest\n\nDevelopment of this plugin was motivated by making testing of Vue.js components easier\nby the use of [Jest with snapshot tests](https://facebook.github.io/jest/docs/snapshot-testing.html).\n\nYou can find a serializer for formatting your HTML here [Jest serializer](https://github.com/rayrutjes/jest-serializer-html).\n","_attachments":{},"homepage":"https://github.com/rayrutjes/diffable-html#readme","bugs":{"url":"https://github.com/rayrutjes/diffable-html/issues"},"license":"MIT"}