{"_id":"@fastify/pre-commit","_rev":"29-b4a17a7604b709d5f1c1d0b72104fde5","name":"@fastify/pre-commit","dist-tags":{"latest":"2.2.1"},"versions":{"2.0.0":{"name":"@fastify/pre-commit","version":"2.0.0","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"license":"MIT","_id":"@fastify/pre-commit@2.0.0","maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"contributors":[{"name":"Arnout Kazemier","email":"opensource@observe.it"}],"homepage":"https://github.com/fastify/pre-commit","bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"dist":{"shasum":"ba07e0554c9e5893d3fe8918846415e515db284a","tarball":"https://registry.npmjs.org/@fastify/pre-commit/-/pre-commit-2.0.0.tgz","fileCount":13,"integrity":"sha512-OY4iq2EprE5HuzrN4FkEjpt6k13Geu0K/QdQ6RanCML5RAs/FKooRM280QKOkjna5NWUXG3AQlHiB9+eTi5DpQ==","signatures":[{"sig":"MEUCIGjdEmbDpkJ+aQN1Ccr4SRosp3rye265i2egjEd4jlSHAiEAuVHH2v2ee6BptXOQBLpGoC0POoMvnoeBAm8LXEfph+0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg30jGCRA9TVsSAnZWagAA4TMP/3UJN02eHoa8VgJeJj8k\n2ddY1UStnp03QOwM7t4vtHgIxW58qbuXJj2G+fsCwQDmnS59BN023unP7VbC\nMxd3A3WrH4iepqS/PlHSkTAwRrGJcTIVbwDwyudUEKt5UhuocwB8uJegkj85\nw8Et+J/VwSeNykv98y9mgkhymgx8/ORSMvoBTcOmBZfz/F9jdqfcDXKwh5do\nXcADTmsFfAgji6CZI3xhkTxe0rFTPJb1TY2okUNzoFZ7fhF2zWkyz8VKAwXd\nMcS4v0HmQ79zI5NFfvYUUR1N+ytvuGZ89CNmxoiNE6SCeH2ShiZxXPHjSfBI\n3pOs05tPBpuKuJZCaSL520y7yRyzdLG8KezEe06+HoHYS7jr3xt2aNOJXz5I\nF2uSq9Nv7c82wgCFKHfRaM7tYj8JV4SrNb+DDUBCqQWxXaIcbdmdQNHQI6o0\n6efPmtyyBMjbYXBxPCIVJglTYYukCvay3Z0w70I6Epm6ltXtVBJWRV02Fb/s\nkE8z9azvOF4T49yMP8x1Arp/N2myEkZ9O60w8BwNQpsm4LhOzHAroGpw5mjp\ncAMlB50N6UkMs2BGYAjp5GuhCOYSy+TzVf/4fovK16o9Ina/0jMxJYpigDfY\ndiUdaOz9yG4bTRarBjECA5lOCsDWUuKo0m1zvqat76u24O1mot2gzYcYV74F\nUnGp\r\n=ZEV0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"ebb579707683c54dca8cef5decde36dbf6403ac9","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"tap test.js","install":"node install.js","uninstall":"node uninstall.js","example-fail":"echo \"This is the example hook, I exit with 1\" && exit 1","example-pass":"echo \"This is the example hook, I exit with 0\" && exit 0"},"_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"_npmVersion":"6.14.12","description":"Automatically install pre-commit hooks for your npm modules.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"which":"^2.0.2","cross-spawn":"^7.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.9","standard":"^16.0.3","pre-commit":"git://github.com/fastify/pre-commit.git","proxyquire":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/pre-commit_2.0.0_1625245894386_0.6209186353002245","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@fastify/pre-commit","version":"2.0.1","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"license":"MIT","_id":"@fastify/pre-commit@2.0.1","maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"contributors":[{"name":"Arnout Kazemier","email":"opensource@observe.it"}],"homepage":"https://github.com/fastify/pre-commit","bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"dist":{"shasum":"7ec5b15c09304e6f8ef4a362c7ba4a75f6395029","tarball":"https://registry.npmjs.org/@fastify/pre-commit/-/pre-commit-2.0.1.tgz","fileCount":13,"integrity":"sha512-ZPHqdG0CUghPpx0Dpnupp1X5NoSJe7w/zijxjN6bQP7V3ME7l8dqPdf3Ux0NBQgP0xHbqOkvZXVyzcouS34K+g==","signatures":[{"sig":"MEUCIQDTWb1rI/bxUZ2d3wiTly//Hfcvb1m1fQCDJ7Ou2ZDJbgIgV4IOeeWEEvjFClGIcJAiVUF9/j3jL1DFMTxYDDzhPqA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34540,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg301xCRA9TVsSAnZWagAA3GgP/A5HhuMsEIDa//HqdwS5\nHZqlO9dQUF2VVgui+3GkM6wjxf0RmZnMRYWEhj/f5Y4DzWtVOKwp7ul6ceoX\nVgan1y8J0Vlrlw3d8sTQd+JoDulJ9B3oqbgyARRXbMetUWu8Mh8dGfc4Ovva\njMj0BkG+PJtepQfYzl324VKtdD4foZ7ljbNdYXiY2aSwm1g6MVaHTFAFWFRQ\n2uwIc5b8nQvRrhx3anN0ott3CvlzzLl8gMGrvwtN+NY7hrsHIBO7akTiU4Pu\nTIeYUsseukj7uUPH6FzmJcL/CWfry3tTw+d9vwNkKhj0dvbjp+ZLM0+kun6U\n4xF2vq3pgWeZM3Bp17VFBRYPXDEwoT2XbIPnf79qfShXszCAUtTMXioMNIod\nRFVi1CFmWMjVUj3ob/Vt75drkEfJQsOeQ5Qqv89JYKqa0jQrbpm0OMo7uc1K\nbgSOOLhTRm9VKVvIlkfswWNtK+8TsxF/rFtJLJYMTonT823zCOGVVSuTXJpD\na+0vKituFQCO0LBLJMkIwpENguQ3uIE0pd1c9PI+rBO2YcmgogUuSH4MQUa9\nn8AqP+Pgb1rfeuarYXG7uaI+cCsapWRrkh1y41mtytsoC6Nc3xXsBOYbtCQ4\n4d+vUWsIJgCcUrvVWcVE+F0ImBj3BezZ/SL4u/DX3oSCo+ty1QxhbL6pnI5v\ndYVs\r\n=lEJd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c7a7d1e8a583a9d23c7cf4dab90eb778bbebc6ba","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"tap test.js","install":"node install.js","uninstall":"node uninstall.js","example-fail":"echo \"This is the example hook, I exit with 1\" && exit 1","example-pass":"echo \"This is the example hook, I exit with 0\" && exit 0"},"_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"_npmVersion":"6.14.12","description":"Automatically install pre-commit hooks for your npm modules.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"which":"^2.0.2","cross-spawn":"^7.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.9","standard":"^16.0.3","pre-commit":"git://github.com/fastify/pre-commit.git","proxyquire":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/pre-commit_2.0.1_1625247089299_0.033490212010417686","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@fastify/pre-commit","version":"2.0.2","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"license":"MIT","_id":"@fastify/pre-commit@2.0.2","maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"contributors":[{"name":"Arnout Kazemier","email":"opensource@observe.it"}],"homepage":"https://github.com/fastify/pre-commit","bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"dist":{"shasum":"a80d816648daef9e71f5601a5890ab8fd44c88b0","tarball":"https://registry.npmjs.org/@fastify/pre-commit/-/pre-commit-2.0.2.tgz","fileCount":13,"integrity":"sha512-NCruP+jjsaj+kwDKAS1zQc2XVCVcBPnH2q4cYbgzoUqvblmXE/SD0MaVgZ4o9MUMnCG+z1YLBGJb1eXNi0SEUw==","signatures":[{"sig":"MEQCIDClkyg8mjBuBw1mEIDcO5HaAzHYtV8aPeDG1tir4nJcAiBMtxtZvjMxBDm4e+TUVWT9LmsP9CbMK5GwjRwZOvJ31w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34549,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5ZTnCRA9TVsSAnZWagAA0QAP/jORV2qlJn9S0lmOc299\nEh1R7/4KOoTTCUQUoCG5HcfhPA2X46QNp4PzTcVsKMofQUlfU4tBQiKb9SPA\nEluyd3zuAKNkqhn+qusdFCBnSypsxwqiwqOKA9dah0pP2dePyEDpO1S3LsAM\ncAfe1l9MxXbTPAUOXr5MtHsNfTUHotT0/uEbrkV/jev2skxWYcKVsNPYy2MP\nSu1NQaw92M3m7cQSMmZGBwNtsTe0hkR5G/7+fiXMLxzOXTbiyVbE2iESV0ja\n1/0VFCQq8UfokW36XAFsv4TsWhfv+46nvG+Tr5Ck0b5cfUir+8HnfzRmcE+L\nSYWwtTTXwmUqATxT2jAfhczy6F/K1/i05oJ/DzHfQeJYndxDFbZbvS5fzrVa\n5IKtfSVq0SmVcl5sBw+CdA7keyeMEidLkIHRLsuHmsk5gTwRmAsMh/cH4/rj\n+AP9ktQNf8y0BpFeFRaTRHqwvJEXnwMrD/k9ZUuzHXwHcoB/6VVjkUYlDnW8\nEBOk+FSM9LzbddeaBLEKSnNzSGnul5pRcepxV67MKXy9SuOBiMoxD0JVqs7R\nMvQ6czHRyVwNWBCjgkYGi+wCSOoZlTAknUXafkz8zgxLRIV78xnblqvSQfho\nqTxFrMM+fz5rE1FlFHgcg6+rls1HffRcJY/FkBNsTXlKIbV1gAy7DhHPE+wG\nXEol\r\n=8Smq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"d11c4b24fc7c55f57f146f9626046df04a6c30c1","scripts":{"lint":"standard","test":"npm run lint && npm run unit","unit":"tap test.js","install":"node install.js","uninstall":"node uninstall.js","example-fail":"echo \"This is the example hook, I exit with 1\" && exit 1","example-pass":"echo \"This is the example hook, I exit with 0\" && exit 0"},"_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"_npmVersion":"6.10.2","description":"Automatically install pre-commit hooks for your npm modules.","directories":{},"_nodeVersion":"12.9.1","dependencies":{"which":"^2.0.2","cross-spawn":"^7.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^15.0.9","standard":"^16.0.3","pre-commit":"git://github.com/fastify/pre-commit.git","proxyquire":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/pre-commit_2.0.2_1625658599464_0.8523411922332509","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@fastify/pre-commit","version":"2.1.0","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"license":"MIT","_id":"@fastify/pre-commit@2.1.0","maintainers":[{"name":"gurgunday","email":"gurgun.dayioglu@icloud.com"},{"name":"metcoder95","email":"me@metcoder.dev"},{"name":"galvez","email":"jonasgalvez@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"coopflow","email":"community@coopflow.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"airhorns","email":"harry@harry.me"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"}],"contributors":[{"name":"Arnout Kazemier","email":"opensource@observe.it"}],"homepage":"https://github.com/fastify/pre-commit","bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"dist":{"shasum":"01c2fff6ced1b2b37a6baf985a9208b9045a9181","tarball":"https://registry.npmjs.org/@fastify/pre-commit/-/pre-commit-2.1.0.tgz","fileCount":14,"integrity":"sha512-UM1Fv4NJ+SErNJzCaR6LBk+4GE4wYtv+/R4ePY7Utx+0PktLVxHsLYnnJWgOfyHqtKCjSchZrn3H8tOPuhCfYA==","signatures":[{"sig":"MEQCIFg5GdTMDKT3E7Q2KB5av/dvXm1ftgLtHheTf+0fMCdQAiBzUBCE9bwNmAteYtMFu0LTBc5b6Ur3HbHP2+ssUL7JZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32763},"main":"index.js","type":"commonjs","gitHead":"c04095cf21179b1be31da767c9b7017d88a2ba46","scripts":{"lint":"standard","test":"npm run unit","unit":"tap test.js","install":"node install.js","uninstall":"node uninstall.js","example-fail":"echo \"This is the example hook, I exit with 1\" && exit 1","example-pass":"echo \"This is the example hook, I exit with 0\" && exit 0"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"_npmVersion":"10.1.0","description":"Automatically install pre-commit hooks for your npm modules.","directories":{},"_nodeVersion":"20.8.0","dependencies":{"which":"^4.0.0","cross-spawn":"^7.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.0","standard":"^17.0.0","pre-commit":"git+https://git@github.com/fastify/pre-commit.git","proxyquire":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/pre-commit_2.1.0_1699555572327_0.9816396837243642","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@fastify/pre-commit","version":"2.2.0","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"license":"MIT","_id":"@fastify/pre-commit@2.2.0","maintainers":[{"name":"gurgunday","email":"hey@gurgun.day"},{"name":"metcoder95","email":"me@metcoder.dev"},{"name":"galvez","email":"jonasgalvez@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"coopflow","email":"community@coopflow.com"},{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"rafaelgss","email":"rafael.nunu@hotmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"airhorns","email":"harry@harry.me"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"}],"contributors":[{"name":"Arnout Kazemier","email":"opensource@observe.it"}],"homepage":"https://github.com/fastify/pre-commit","bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"dist":{"shasum":"964c6d323eb8b7285d93195ad2976d7114bd804f","tarball":"https://registry.npmjs.org/@fastify/pre-commit/-/pre-commit-2.2.0.tgz","fileCount":13,"integrity":"sha512-P/01iODIvntjCGKNGhCttCuW81Fi6RmU+n3uk0m1w5gr2t6gU/t9gyNJ1WalUmQgJBsJnK+CVAxoY4ugqQo03g==","signatures":[{"sig":"MEUCIQDum/YTTR75sF6P3wpDQmA2G1ojVbV7l/3mpf7sED+C4QIgeUPEAJSlw2LBNNS4swt4nq9sUko1EWJ5twzJVEypYW4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35077},"main":"index.js","type":"commonjs","gitHead":"e491615e2f140d3e84824f7016ec6838154c2b55","scripts":{"lint":"standard","test":"npm run unit","unit":"c8 node --test","install":"node install.js","uninstall":"node uninstall.js","example-fail":"echo \"This is the example hook, I exit with 1\" && exit 1","example-pass":"echo \"This is the example hook, I exit with 0\" && exit 0"},"_npmUser":{"name":"jsumners","email":"james.sumners@gmail.com"},"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"_npmVersion":"10.8.2","description":"Automatically install pre-commit hooks for your npm modules.","directories":{},"_nodeVersion":"22.5.1","dependencies":{"which":"^5.0.0","cross-spawn":"^7.0.3"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","standard":"^17.1.0","pre-commit":"git+https://git@github.com/fastify/pre-commit.git","proxyquire":"^2.1.3"},"_npmOperationalInternal":{"tmp":"tmp/pre-commit_2.2.0_1729952072196_0.6939159033819873","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"@fastify/pre-commit","version":"2.2.1","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"author":{"name":"Arnout Kazemier","email":"opensource@observe.it"},"license":"MIT","_id":"@fastify/pre-commit@2.2.1","maintainers":[{"name":"simoneb","email":"simone.busoli@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"zekth","email":"vince.legoff@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"airhorns","email":"harry@harry.me"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"galvez","email":"jonasgalvez@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"gurgunday","email":"hey@gurgun.day"},{"name":"metcoder95","email":"me@metcoder.dev"},{"name":"jean-michelet","email":"jean.antoine.michelet@gmail.com"}],"contributors":[{"name":"Matteo Collina","email":"hello@matteocollina.com"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com"},{"url":"https://james.sumners.info","name":"James Sumners"},{"url":"https://github.com/fdawgs","name":"Frazer Smith","email":"frazer.dev@icloud.com"}],"homepage":"https://github.com/fastify/pre-commit","bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"dist":{"shasum":"20ce6f10cfc9a23932c1c68033870b30120a3f0e","tarball":"https://registry.npmjs.org/@fastify/pre-commit/-/pre-commit-2.2.1.tgz","fileCount":14,"integrity":"sha512-EluAZU4mFnCJfb6RyWFpWvEIAwdchipoiWMSRkQEaQ6ubbf6UVzYuXKSSZJR36SgtgZmKV5oRMxxwMNta5hskg==","signatures":[{"sig":"MEYCIQDIWuiCabzRGWFGI2VIHKHC57Tfj4MgjT+UbKpAXLvxawIhAKyZdxm+Q+6PMjCkHGlzTLn2vJBQnfG44nrFZ0GWPmHT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":36049},"main":"index.js","type":"commonjs","funding":[{"url":"https://github.com/sponsors/fastify","type":"github"},{"url":"https://opencollective.com/fastify","type":"opencollective"}],"gitHead":"d67708cba8e7740fe357eef619f4728254cbe806","scripts":{"lint":"eslint","test":"npm run unit","unit":"c8 node --test","install":"node install.js","lint:fix":"eslint --fix","uninstall":"node uninstall.js","example-fail":"echo \"This is the example hook, I exit with 1\" && exit 1","example-pass":"echo \"This is the example hook, I exit with 0\" && exit 0"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"_npmVersion":"10.9.3","description":"Automatically install pre-commit hooks for your npm modules.","directories":{},"_nodeVersion":"22.19.0","dependencies":{"which":"^5.0.0","cross-spawn":"^7.0.3"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","eslint":"^9.17.0","pre-commit":"git+https://git@github.com/fastify/pre-commit.git","proxyquire":"^2.1.3","neostandard":"^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/pre-commit_2.2.1_1759072536542_0.5674744819426842","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2021-07-02T17:11:34.218Z","modified":"2026-10-04T08:54:53.726Z","2.0.0":"2021-07-02T17:11:34.586Z","2.0.1":"2021-07-02T17:31:29.515Z","2.0.2":"2021-07-07T11:49:59.619Z","2.1.0":"2023-11-09T18:46:12.555Z","2.2.0":"2024-10-26T14:14:32.437Z","2.2.1":"2025-09-28T15:15:36.717Z"},"bugs":{"url":"https://github.com/fastify/pre-commit/issues"},"author":{"name":"Arnout Kazemier","email":"opensource@observe.it"},"license":"MIT","homepage":"https://github.com/fastify/pre-commit","keywords":["git","hooks","npm","pre-commit","precommit","run","test","development"],"repository":{"url":"git://github.com/fastify/pre-commit.git","type":"git"},"description":"Automatically install pre-commit hooks for your npm modules.","contributors":[{"name":"Matteo Collina","email":"hello@matteocollina.com"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com"},{"url":"https://james.sumners.info","name":"James Sumners"},{"url":"https://github.com/fdawgs","name":"Frazer Smith","email":"frazer.dev@icloud.com"}],"maintainers":[{"email":"behemoth89@gmail.com","name":"eomm"}],"readme":"# @fastify/pre-commit\n\n**@fastify/pre-commit** is a pre-commit hook installer for `git`. It will ensure that\nyour `npm test` (or other specified scripts) passes before you can commit your\nchanges. This is all conveniently configured in your `package.json`.\n\nBut don't worry, you can still force a commit by telling `git` to skip the\n`pre-commit` hooks by simply committing using `--no-verify`.\n\n### Installation\n\nIt's advised to install the **@fastify/pre-commit** module as a `devDependencies` in your\n`package.json` as you only need this for development purposes. To install the\nmodule simply run:\n\n```\nnpm i -D @fastify/pre-commit\n```\n\nTo install it as `devDependency`. When this module is installed it will override\nthe existing `pre-commit` file in your `.git/hooks` folder. Existing\n`pre-commit` hooks will be backed up as `pre-commit.old` in the same repository.\n\n### Configuration\n\n`@fastify/pre-commit` will try to run your `npm test` command in the root of the git\nrepository by default unless it's the default value that is set by the `npm\ninit` script.\n\nBut `@fastify/pre-commit` is not limited to just running your `npm test`'s during the\ncommit hook. It's also capable of running every other script that you've\nspecified in your `package.json` \"scripts\" field. So before people commit you\ncould ensure that:\n\n- You have 100% coverage\n- All styling passes.\n- JSHint passes.\n- Contribution licenses signed etc.\n\nThe only thing you need to do is add a `pre-commit` array to your `package.json`\nthat specifies which scripts you want to run and in which order:\n\n```js\n{\n  \"name\": \"437464d0899504fb6b7b\",\n  \"version\": \"0.0.0\",\n  \"description\": \"ERROR: No README.md file found!\",\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: I SHOULD FAIL LOLOLOLOLOL \\\" && exit 1\",\n    \"foo\": \"echo \\\"fooo\\\" && exit 0\",\n    \"bar\": \"echo \\\"bar\\\" && exit 0\"\n  },\n  \"pre-commit\": [\n    \"foo\",\n    \"bar\",\n    \"test\"\n  ]\n}\n```\n\nIn the example above, it will first run: `npm run foo` then `npm run bar`, and\nfinally, `npm run test` which will make the commit fail as it returns the error\ncode `1`.  If you prefer strings over arrays or `precommit` without a middle\ndash, that also works:\n\n```js\n{\n  \"precommit\": \"foo, bar, test\"\n  \"pre-commit\": \"foo, bar, test\"\n  \"pre-commit\": [\"foo\", \"bar\", \"test\"]\n  \"precommit\": [\"foo\", \"bar\", \"test\"],\n  \"precommit\": {\n    \"run\": \"foo, bar, test\",\n  },\n  \"pre-commit\": {\n    \"run\": [\"foo\", \"bar\", \"test\"],\n  },\n  \"precommit\": {\n    \"run\": [\"foo\", \"bar\", \"test\"],\n  },\n  \"pre-commit\": {\n    \"run\": \"foo, bar, test\",\n  }\n}\n```\n\nThe examples above are all the same. In addition to configuring which scripts\nshould be run you can also configure the following options:\n\n- **silent** Don't output the prefixed `pre-commit:` messages when things fail\n  or when we have nothing to run. Should be a boolean.\n- **colors** Don't output colors when we write messages. Should be a boolean.\n- **template** Path to a file whose content should be used as a template for the\n  git commit body.\n\nThese options can either be added in the `pre-commit`/`precommit` object as keys\nor as `\"pre-commit.{key}` key properties in the `package.json`:\n\n```js\n{\n  \"precommit.silent\": true,\n  \"pre-commit\": {\n    \"silent\": true\n  }\n}\n```\n\nConfiguration can also be defined inside a standalone `.pre-commit.json` config file:\n\n```js\n{\n  \"silent\": true,\n  \"colors\": true,\n  \"template\": \"./temp\",\n  \"run\": [\n    \"lint\",\n    \"test\"\n  ]\n}\n```\n\nThe contents of `.pre-commit.json` will be used in place of whatever was defined in the `pre-commit`\nor `precommit` property inside `package.json`.\n\nIt is all the same. Different styles so use what matches your project. To learn\nmore about the scripts, please read the official `npm` documentation:\n\nhttps://docs.npmjs.com/misc/scripts\n\nAnd to learn more about git hooks read:\n\nhttp://githooks.com\n\n## License\n\nLicensed under [MIT](./LICENSE).\n\n### Attribution\n\nThe `@fastify/pre-commit` package is a fork of the original work found at\nhttps://github.com/observing/pre-commit.\n","readmeFilename":"README.md"}