{"_id":"@bouzuya/screenshot-testing","_rev":"4-107439c5c2b070341dafbe512babc909","name":"@bouzuya/screenshot-testing","description":"A screenshot testing tool for JavaScript (Node.js)","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@bouzuya/screenshot-testing","description":"A screenshot testing tool for JavaScript (Node.js)","version":"0.1.0","author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net"},"babel":{"presets":["power-assert"]},"bugs":{"url":"https://github.com/bouzuya/screenshot-testing-js/issues"},"dependencies":{"@bouzuya/compare-images":"^0.1.1","fs-extra":"^5.0.0","open":"0.0.5","pngjs":"^3.3.1","puppeteer":"^0.13.0"},"devDependencies":{"@types/fs-extra":"^5.0.0","@types/node":"^8.5.5","@types/open":"0.0.29","@types/pngjs":"^3.3.0","@types/power-assert":"^1.4.29","@types/proxyquire":"^1.3.28","@types/puppeteer":"^0.13.9","@types/sinon":"^4.1.2","babel-cli":"^6.26.0","babel-preset-power-assert":"^1.0.0","beater":"^5.0.1","cpx":"^1.5.0","npm-run-all":"^4.1.2","power-assert":"^1.4.4","proxyquire":"^1.8.0","rimraf":"^2.6.2","sinon":"^4.1.3","tap-dot-b":"^0.1.0","tslint":"^5.8.0","typescript":"^2.6.2","watch":"^1.0.2"},"files":["lib"],"homepage":"https://github.com/bouzuya/screenshot-testing-js#readme","keywords":[],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bouzuya/screenshot-testing-js.git"},"scripts":{"build":"npm-run-all -s \"build:lint\" \"build:es2015\" \"build:es5\" \"build:lib\"","build:es2015":"tsc","build:es5":"babel -q -d \".tmp/es5/\" \".tmp/es2015/\"","build:lib":"cpx \".tmp/es2015/src/**/*.{js,ts}\" \"lib/\"","build:lint":"tslint --project tsconfig.json","clean":"rimraf \".tmp\" \"lib\"","example:approve":"node .tmp/es2015/example/index.js approve","example:capture":"node .tmp/es2015/example/index.js capture","example:compare":"node .tmp/es2015/example/index.js compare","example:test":"node .tmp/es2015/example/index.js test","prepare":"npm-run-all -s \"clean\" \"build\"","test":"node .tmp/es5/test/index.js | tap-dot-b","watch":"npm-run-all -p \"watch:*\"","watch:es2015":"npm run build:es2015 -- --watch","watch:es5":"npm run build:es5 -- --watch","watch:test":"watch \"npm run test\" \".tmp/es5/\""},"gitHead":"2622ab999a3209ae2c166e0b72b2f8bc54df88b4","_id":"@bouzuya/screenshot-testing@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"bouzuya","email":"m@bouzuya.net"},"dist":{"integrity":"sha512-gJ1q8ZCeoFdGKhFM/UxcyI6KhsXnc/Cd/oPwZSaZtjQ3Sn5DwOX4u9iKjNrvbxvNUcKp+PEHDb0fR6F8W+3cyg==","shasum":"5c212a54a59f2d8260781e827561b792fa69bef9","tarball":"https://registry.npmjs.org/@bouzuya/screenshot-testing/-/screenshot-testing-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC96Vs67gevPveqnR35IWmjaQTEFSEQLccNMlk7YP5gTAIgHtYaNR03RlapTx5UtabAQMZTFye0egVasywA4fBEYH0="}]},"maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screenshot-testing-0.1.0.tgz_1515408984063_0.3174004352185875"}},"0.1.1":{"name":"@bouzuya/screenshot-testing","description":"A screenshot testing tool for JavaScript (Node.js)","version":"0.1.1","author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net"},"babel":{"presets":["power-assert"]},"bugs":{"url":"https://github.com/bouzuya/screenshot-testing-js/issues"},"dependencies":{"@bouzuya/compare-images":"^0.1.1","fs-extra":"^5.0.0","open":"0.0.5","pngjs":"^3.3.1","puppeteer":"^0.13.0"},"devDependencies":{"@types/fs-extra":"^5.0.0","@types/node":"^8.5.5","@types/open":"0.0.29","@types/pngjs":"^3.3.0","@types/power-assert":"^1.4.29","@types/proxyquire":"^1.3.28","@types/puppeteer":"^0.13.9","@types/sinon":"^4.1.2","babel-cli":"^6.26.0","babel-preset-power-assert":"^1.0.0","beater":"^5.0.1","cpx":"^1.5.0","npm-run-all":"^4.1.2","power-assert":"^1.4.4","proxyquire":"^1.8.0","rimraf":"^2.6.2","sinon":"^4.1.3","tap-dot-b":"^0.1.0","tslint":"^5.8.0","typescript":"^2.6.2","watch":"^1.0.2"},"files":["lib"],"homepage":"https://github.com/bouzuya/screenshot-testing-js#readme","keywords":[],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/bouzuya/screenshot-testing-js.git"},"scripts":{"build":"npm-run-all -s \"build:lint\" \"build:es2015\" \"build:es5\" \"build:lib\"","build:es2015":"tsc","build:es5":"babel -q -d \".tmp/es5/\" \".tmp/es2015/\"","build:lib":"cpx \".tmp/es2015/src/**/*.{js,ts}\" \"lib/\"","build:lint":"tslint --project tsconfig.json","clean":"rimraf \".tmp\" \"lib\"","example:approve":"node .tmp/es2015/example/index.js approve","example:capture":"node .tmp/es2015/example/index.js capture","example:compare":"node .tmp/es2015/example/index.js compare","example:test":"node .tmp/es2015/example/index.js test","prepare":"npm-run-all -s \"clean\" \"build\"","test":"node .tmp/es5/test/index.js | tap-dot-b","watch":"npm-run-all -p \"watch:*\"","watch:es2015":"npm run build:es2015 -- --watch","watch:es5":"npm run build:es5 -- --watch","watch:test":"watch \"npm run test\" \".tmp/es5/\""},"types":"lib/index.d.ts","gitHead":"f347dcc0f6b424b3e606f6530593f7d641cd0ad7","_id":"@bouzuya/screenshot-testing@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"bouzuya","email":"m@bouzuya.net"},"dist":{"integrity":"sha512-EqV/wOi99rgm1T4ScAqQ2L/q+U/1L+JvmIuwsFzrVoV9RlZHkdlFlSRQ9jPFOu4DfXDsQdWiDQH05iZQoYdY4g==","shasum":"a5504dafc4d2fddf6a6eb295f92d3cc7db262c90","tarball":"https://registry.npmjs.org/@bouzuya/screenshot-testing/-/screenshot-testing-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZBZSXms+bMJ9YKGYAGBhWYZzjI+eR8aKtLlNIhVHaeQIhAOayObJsFOGFMeU5u8lBmIpHALUjsokOjIblooSIYFbD"}]},"maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screenshot-testing-0.1.1.tgz_1515552144799_0.44612537417560816"}},"0.2.0":{"name":"@bouzuya/screenshot-testing","description":"A screenshot testing tool for JavaScript (Node.js)","version":"0.2.0","author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net"},"babel":{"presets":["power-assert"]},"bugs":{"url":"https://github.com/bouzuya/screenshot-testing-js/issues"},"dependencies":{"@bouzuya/compare-images":"^0.2.0","fs-extra":"^5.0.0","open":"0.0.5","pngjs":"^3.3.1","puppeteer":"^0.13.0"},"devDependencies":{"@types/fs-extra":"^5.0.0","@types/node":"^8.5.5","@types/open":"0.0.29","@types/pngjs":"^3.3.0","@types/power-assert":"^1.4.29","@types/proxyquire":"^1.3.28","@types/puppeteer":"^0.13.9","@types/sinon":"^4.1.2","babel-cli":"^6.26.0","babel-preset-power-assert":"^1.0.0","beater":"^5.0.1","cpx":"^1.5.0","npm-run-all":"^4.1.2","power-assert":"^1.4.4","proxyquire":"^1.8.0","rimraf":"^2.6.2","sinon":"^4.1.3","tap-dot-b":"^0.1.0","tslint":"^5.8.0","typescript":"^2.6.2","watch":"^1.0.2"},"files":["lib"],"homepage":"https://github.com/bouzuya/screenshot-testing-js#readme","keywords":[],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/bouzuya/screenshot-testing-js.git"},"scripts":{"build":"npm-run-all -s \"build:lint\" \"build:es2015\" \"build:es5\" \"build:lib\"","build:es2015":"tsc","build:es5":"babel -q -d \".tmp/es5/\" \".tmp/es2015/\"","build:lib":"cpx \".tmp/es2015/src/**/*.{js,ts}\" \"lib/\"","build:lint":"tslint --project tsconfig.json","clean":"rimraf \".tmp\" \"lib\"","example:approve":"node .tmp/es2015/example/index.js approve","example:capture":"node .tmp/es2015/example/index.js capture","example:compare":"node .tmp/es2015/example/index.js compare","example:test":"node .tmp/es2015/example/index.js test","prepare":"npm-run-all -s \"clean\" \"build\"","test":"node .tmp/es5/test/index.js | tap-dot-b","watch":"npm-run-all -p \"watch:*\"","watch:es2015":"npm run build:es2015 -- --watch","watch:es5":"npm run build:es5 -- --watch","watch:test":"watch \"npm run test\" \".tmp/es5/\""},"types":"lib/index.d.ts","gitHead":"a38a245cff85751970e225c1afdd2061ce22b2bb","_id":"@bouzuya/screenshot-testing@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"bouzuya","email":"m@bouzuya.net"},"dist":{"integrity":"sha512-EOk5bnH+5ny+mxg1v4b171WroekyrcFPi3ZAshNldIhWWRZ6J8h/W2z/WZLwztzIpS4LzOgT+V4LZks0zh4Niw==","shasum":"63290a734eb320b592f5988d4e66811a045a76ac","tarball":"https://registry.npmjs.org/@bouzuya/screenshot-testing/-/screenshot-testing-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7KV1pUSmW2yEQOsgXi7PJIk/ZnnEqMAWo8BEF8+0mCAiEAxJzJwyJ/QAp3sqO6TCGf341tDEbEt97D1DnK51FJHwc="}]},"maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screenshot-testing-0.2.0.tgz_1515709528054_0.01250175223685801"}},"0.3.0":{"name":"@bouzuya/screenshot-testing","description":"A screenshot testing tool for JavaScript (Node.js)","version":"0.3.0","author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net"},"babel":{"presets":["power-assert"]},"bugs":{"url":"https://github.com/bouzuya/screenshot-testing-js/issues"},"dependencies":{"@bouzuya/compare-images":"^0.2.0","fs-extra":"^5.0.0","open":"0.0.5","pngjs":"^3.3.1","puppeteer":"^0.13.0"},"devDependencies":{"@types/fs-extra":"^5.0.0","@types/node":"^8.5.5","@types/open":"0.0.29","@types/pngjs":"^3.3.0","@types/power-assert":"^1.4.29","@types/proxyquire":"^1.3.28","@types/puppeteer":"^0.13.9","@types/sinon":"^4.1.2","babel-cli":"^6.26.0","babel-preset-power-assert":"^1.0.0","beater":"^5.0.1","cpx":"^1.5.0","npm-run-all":"^4.1.2","power-assert":"^1.4.4","proxyquire":"^1.8.0","rimraf":"^2.6.2","sinon":"^4.1.3","tap-dot-b":"^0.1.0","tslint":"^5.8.0","typescript":"^2.6.2","watch":"^1.0.2"},"files":["lib"],"homepage":"https://github.com/bouzuya/screenshot-testing-js#readme","keywords":[],"license":"MIT","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/bouzuya/screenshot-testing-js.git"},"scripts":{"build":"npm-run-all -s \"build:lint\" \"build:es2015\" \"build:es5\" \"build:lib\"","build:es2015":"tsc","build:es5":"babel -q -d \".tmp/es5/\" \".tmp/es2015/\"","build:lib":"cpx \".tmp/es2015/src/**/*.{js,ts}\" \"lib/\"","build:lint":"tslint --project tsconfig.json","clean":"rimraf \".tmp\" \"lib\"","example:approve":"node .tmp/es2015/example/index.js approve","example:capture":"node .tmp/es2015/example/index.js capture","example:compare":"node .tmp/es2015/example/index.js compare","example:test":"node .tmp/es2015/example/index.js test","prepare":"npm-run-all -s \"clean\" \"build\"","test":"node .tmp/es5/test/index.js | tap-dot-b","watch":"npm-run-all -p \"watch:*\"","watch:es2015":"npm run build:es2015 -- --watch","watch:es5":"npm run build:es5 -- --watch","watch:test":"watch \"npm run test\" \".tmp/es5/\""},"types":"lib/index.d.ts","gitHead":"007d80a382fcbe716294a48aaa1420fb4f658abe","_id":"@bouzuya/screenshot-testing@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"bouzuya","email":"m@bouzuya.net"},"dist":{"integrity":"sha512-OkEHu/TktU8rG6qwU7AzdzTOMNnu7/fhAIh6HPw0iIII7ondrM7MlGPxJn9J/ezPLbIEkV8MPfRgpJicN78O7Q==","shasum":"4b0f1a0daa436c2085274a45f5b418c90906db7f","tarball":"https://registry.npmjs.org/@bouzuya/screenshot-testing/-/screenshot-testing-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDFpeIkeqmhU0/tFUeAr+4JLxXUdqdBOUDnGg3n0C/lwAiA4qyyRhfkmAtQwHUyingJIiSuU+IgVqbDDm2A6ag2kLg=="}]},"maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/screenshot-testing-0.3.0.tgz_1515816832184_0.4815820869989693"}}},"readme":"# screenshot-testing-js\n\nA screenshot testing tool for JavaScript (Node.js).\n\n## Installation\n\n```sh\nnpm install @bouzuya/screenshot-testing\n```\n\n## Usage\n\n```js\nimport { execute } from '@bouzuya/screenshot-testing';\n\nconst command = process.argv[2]; // 'approve' or 'capture' or 'compare' or 'test'\nconst options = {\n  path: {\n    approved: 'approved/',\n    captured: 'captured/',\n    compared: 'compared/'\n  },\n  scenarios: [\n    {\n      action: async (page) => {\n        await page.goto('http://example.com');\n        return {};\n      },\n      name: 'scenario1'\n    }\n  ]\n};\nexecute(command, options);\n```\n\n## License\n\n[MIT](LICENSE)\n\n## Author\n\n[bouzuya][user] &lt;[m@bouzuya.net][email]&gt; ([http://bouzuya.net][url])\n\n[user]: https://github.com/bouzuya\n[email]: mailto:m@bouzuya.net\n[url]: http://bouzuya.net\n","maintainers":[{"name":"bouzuya","email":"m@bouzuya.net"}],"time":{"modified":"2022-04-04T20:16:24.092Z","created":"2018-01-08T10:56:24.146Z","0.1.0":"2018-01-08T10:56:24.146Z","0.1.1":"2018-01-10T02:42:24.972Z","0.2.0":"2018-01-11T22:25:28.120Z","0.3.0":"2018-01-13T04:13:52.518Z"},"homepage":"https://github.com/bouzuya/screenshot-testing-js#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bouzuya/screenshot-testing-js.git"},"author":{"name":"bouzuya","email":"m@bouzuya.net","url":"http://bouzuya.net"},"bugs":{"url":"https://github.com/bouzuya/screenshot-testing-js/issues"},"license":"MIT","readmeFilename":"README.md"}