{"versions":{"2.1.3":{"name":"git-format-staged","version":"2.1.3","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","release":{"branches":"master"},"devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^4.2.5","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^17.2.3","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"gitHead":"8e98ce7215cbdde21187afbf89b135faa8fade79","_id":"git-format-staged@2.1.3","_nodeVersion":"14.18.2","_npmVersion":"6.14.8","dist":{"integrity":"sha512-M9q3W4CCQShYPHUiINhYUtHPJ3E1/aa3Ajbk8q2OAaCgqEmqZ6gBI6P1fnwD54/Fs9SA2MaOvDxpYRNa1OVGIA==","shasum":"d1d033942a0d31b83fa64f6587b01ca13de0d29e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-2.1.3.tgz","fileCount":4,"unpackedSize":22339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhuL9DCRA9TVsSAnZWagAAF0EP/jCaIiKHIgBsW0GOlDAO\nLWDievaPOdJPYzE+n/xB575//ymkJC1PuG+IZVKzEviDsDXvbhlR/SXMtHNK\nIy8bF9m5RIBORW1YGxKPNrEjxOU7UDB457nPz1AhcuamI4KuI7FrSH11v0+E\nU0zGzsOCcOfzDwxiL38+PnUh6m62RiSsxLYC5Q3i6UdcvKzzjK2XPFvzqODW\nxE02oO/zEUCxseFTFpZt6LfcFLqKctrE2/DYy7mqkKuXeHKwqUQGe3KhfHI7\nfTAvWau4TOhpxitwZ6oIuKUAH/52FR0XlRRyTQDUpSFqEvD/A2BqTSDvr6w4\nGKfPya8m1LwRdkP43SsVSTRLFyfHNXFUY60sNDui9bdBMo5OLw8R4JmZESpt\nyuRgEdXWNje8Vn82F+GnuzwWcSAW4j9JuiMzvZ24eklGa3FDgVxvBQLf2M/O\n/OOf4ALJcKLESQCjw/SGAGQCCxkjAV01W5nJV24rSJu8qvAY3b3b4Vk5f+qE\nAvscAOjmC8OAspxxg8H/uJcVLo2s4ro3RpkTTztcd2kWhC0K0nBe9a/dGFf5\n0KkJgfrMR49ruEFY0jDeWFSTdRr0NubEyXuenS5G/jy/YMx2+h6VFX2lJMtT\nLQn/lsghHVxprqG3QC5Zho1zxygneYG1ikGNrNEZwFuKei0uVfaIjrgOMzxY\npxVJ\r\n=GLcs\r\n-----END PGP SIGNATURE-----\r\n","size":7955,"noattachment":false},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_2.1.3_1639497539657_0.37335170788276106"},"_hasShrinkwrap":false,"publish_time":1639497539792,"_cnpm_publish_time":1639497539792,"_cnpmcore_publish_time":"2021-12-15T16:43:30.729Z","contributors":[]},"2.1.2":{"name":"git-format-staged","version":"2.1.2","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","release":{"branches":"master"},"devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^4.2.5","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^17.2.3","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"gitHead":"ebc6e34df95b4437f9363ee7bff8d403f7536ebc","_id":"git-format-staged@2.1.2","_nodeVersion":"14.17.0","_npmVersion":"6.14.8","dist":{"shasum":"d4e47e194f39514a8754311dea85470d3e66306c","size":7961,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-2.1.2.tgz","integrity":"sha512-ieP6iEyMJQ9xPKJGFSmK4HELcDdYwUO84dG4NBKdjaSTOdsZgrW9paLaEau2D4daPQjLwSsgwdqtYjqoVxz3Lw=="},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_2.1.2_1623358199400_0.06405234845852492"},"_hasShrinkwrap":false,"publish_time":1623358199559,"_cnpm_publish_time":1623358199559,"_cnpmcore_publish_time":"2021-12-15T16:43:31.069Z","contributors":[]},"2.1.1":{"name":"git-format-staged","version":"2.1.1","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","release":{"branches":"master"},"devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^4.2.5","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^17.2.3","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"gitHead":"1ca5201669fc71293c6af44becfa7e4ff3b9183e","_id":"git-format-staged@2.1.1","_nodeVersion":"14.15.4","_npmVersion":"6.14.8","dist":{"shasum":"e9e4b2f1caf4b6656ef568227aa72915ec2e5d87","size":7931,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-2.1.1.tgz","integrity":"sha512-Db4QiAymao9BfpTBCdEcF53jBZfKuwIigqhNmtODD+KOKbxrdDVMDeAs+P7eqJl9udlBZejhRKRbyFRtKLbVmA=="},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_2.1.1_1609948998759_0.7485863283720753"},"_hasShrinkwrap":false,"publish_time":1609948998907,"_cnpm_publish_time":1609948998907,"_cnpmcore_publish_time":"2021-12-15T16:43:31.304Z","contributors":[]},"2.1.0":{"name":"git-format-staged","version":"2.1.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"precommit":"./git-format-staged --formatter prettier-standard '*.js'","commitmsg":"commitlint -e $GIT_PARAMS","test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"./git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","files":["git-format-staged"],"release":{"branch":"master"},"devDependencies":{"@babel/plugin-transform-flow-strip-types":"^7.0.0-beta.46","@commitlint/cli":"^6.2.0","@commitlint/config-angular":"^6.1.3","ava":"^1.0.0-beta.4","flow-bin":"^0.72.0","fs-extra":"^6.0.1","husky":"^0.14.3","prettier-standard":"^8.0.1","semantic-release":"^15.5.0","strip-indent":"^2.0.0","tmp":"0.0.33"},"ava":{"babel":{"testOptions":{"plugins":["@babel/plugin-transform-flow-strip-types"]}},"color":false,"files":["test/**/*_test.js"]},"gitHead":"e986b4d445639ffadef77d3ec6302f4f78e8c58f","_id":"git-format-staged@2.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"dist":{"shasum":"9cf11fed8171f23a22adb58ac2877324ea562755","size":7659,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-2.1.0.tgz","integrity":"sha512-Ih3EVablJ1Xj/JPMzbXY3Nl0W6NQ9YrA+mad3c9yobODzq9zfOBHMi0h3AScRprm4XtBbIo1oGfwO3cZ4vmg6Q=="},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_2.1.0_1532734013445_0.07507391544011388"},"_hasShrinkwrap":false,"publish_time":1532734013550,"_cnpm_publish_time":1532734013550,"_cnpmcore_publish_time":"2021-12-15T16:43:31.542Z","contributors":[]},"2.0.0":{"name":"git-format-staged","version":"2.0.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"precommit":"./git-format-staged --formatter prettier-standard '*.js'","commitmsg":"commitlint -e $GIT_PARAMS","test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"./git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","files":["git-format-staged"],"release":{"branch":"master"},"devDependencies":{"@babel/plugin-transform-flow-strip-types":"^7.0.0-beta.46","@commitlint/cli":"^6.2.0","@commitlint/config-angular":"^6.1.3","ava":"^1.0.0-beta.4","flow-bin":"^0.72.0","fs-extra":"^6.0.1","husky":"^0.14.3","prettier-standard":"^8.0.1","semantic-release":"^15.5.0","strip-indent":"^2.0.0","tmp":"0.0.33"},"ava":{"babel":{"testOptions":{"plugins":["@babel/plugin-transform-flow-strip-types"]}},"color":false,"files":["test/**/*_test.js"]},"gitHead":"84ab8de640cbb224e2abbac715c06ac0c34ab504","_id":"git-format-staged@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"dist":{"shasum":"dbe728c7694fdc9d04c7d45713cefccd6dad6daa","size":7415,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-2.0.0.tgz","integrity":"sha512-F/2ewoAezq/S8lKtJc+rcb4/80R9/T86MMmbAuIyeXz5nOARJV7QVaK3A65ZQF83eYNrhH0wJ40U1hkMK50BkQ=="},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_2.0.0_1528730475932_0.6189213256573407"},"_hasShrinkwrap":false,"publish_time":1528730476024,"_cnpm_publish_time":1528730476024,"_cnpmcore_publish_time":"2021-12-15T16:43:31.743Z","contributors":[]},"1.1.0":{"name":"git-format-staged","version":"1.1.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"precommit":"./git-format-staged --formatter prettier-standard '*.js'","commitmsg":"commitlint -e $GIT_PARAMS","test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"./git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","files":["git-format-staged"],"release":{"branch":"master"},"devDependencies":{"@babel/plugin-transform-flow-strip-types":"^7.0.0-beta.46","@commitlint/cli":"^6.2.0","@commitlint/config-angular":"^6.1.3","ava":"^1.0.0-beta.4","flow-bin":"^0.72.0","fs-extra":"^6.0.1","husky":"^0.14.3","prettier-standard":"^8.0.1","semantic-release":"^15.5.0","strip-indent":"^2.0.0","tmp":"0.0.33"},"ava":{"babel":{"testOptions":{"plugins":["@babel/plugin-transform-flow-strip-types"]}},"color":false,"files":["test/**/*_test.js"]},"gitHead":"418c847885ce3a9b9a2560c0cd6e82b9ed7eb0f1","_id":"git-format-staged@1.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"dist":{"shasum":"4793a86002f94fdce5531e2dea2095ad6240f85c","size":6173,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-1.1.0.tgz","integrity":"sha512-AzXwvLjCjp3VFrYdJuhfLcbZkzR7bS15yAC9ea7SX7A/9dmY+8FBa4sZIrk65m4hE1LI4JI0IKfvArQDarDINw=="},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_1.1.0_1528048115047_0.869330336042504"},"_hasShrinkwrap":false,"publish_time":1528048115109,"_cnpm_publish_time":1528048115109,"_cnpmcore_publish_time":"2021-12-15T16:43:31.952Z","contributors":[]},"1.0.0":{"name":"git-format-staged","version":"1.0.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"precommit":"./git-format-staged --formatter prettier-standard '*.js'","commitmsg":"commitlint -e $GIT_PARAMS","test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"./git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","files":["git-format-staged"],"release":{"branch":"master"},"devDependencies":{"@babel/plugin-transform-flow-strip-types":"^7.0.0-beta.46","@commitlint/cli":"^6.2.0","@commitlint/config-angular":"^6.1.3","ava":"^1.0.0-beta.4","flow-bin":"^0.72.0","fs-extra":"^6.0.1","husky":"^0.14.3","prettier-standard":"^8.0.1","semantic-release":"^15.5.0","strip-indent":"^2.0.0","tmp":"0.0.33"},"ava":{"babel":{"testOptions":{"plugins":["@babel/plugin-transform-flow-strip-types"]}},"color":false,"files":["test/**/*_test.js"]},"gitHead":"ded6e95d3e33eba03192a1620a58d0c66fdec293","_id":"git-format-staged@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"10.2.1","_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"dist":{"shasum":"85daf3c7c057a3fc42fac36e6b457577872c8dbd","size":5724,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-1.0.0.tgz","integrity":"sha512-4uT0nw0evhjLxwWABkEhc7i1BIBUzQ1vvaiexWLaab3eMvksqjZQEfuZH2M/JUtSbwYwk4XGbFT9Kof3qlFcmQ=="},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_1.0.0_1527455471203_0.9950375081275822"},"_hasShrinkwrap":false,"publish_time":1527455471271,"_cnpm_publish_time":1527455471271,"_cnpmcore_publish_time":"2021-12-15T16:43:32.178Z","contributors":[]},"3.0.0":{"name":"git-format-staged","version":"3.0.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^4.2.5","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^19.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"gitHead":"b4ed564128656d74f9c1b28285e78f6a5241fa71","_id":"git-format-staged@3.0.0","_nodeVersion":"14.19.1","_npmVersion":"8.5.5","dist":{"integrity":"sha512-cdDJxV06qY8ucBsW/uIFR4PYN/kDHl43nG8yg+VPPaDeLAf8hEPhEIJTeJ+yRClxcDSpoTmDPiFZUoxFx1wPCg==","shasum":"66fe89fcb537f78e8129412dc0b2511b34d49e32","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-3.0.0.tgz","fileCount":4,"unpackedSize":22800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiN59GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5PA//WlUOmVYXr7uS3Og9GWIiHsj8ipcA+seVi+Ir1jM/pIc3qcS/\r\nEvi4WoaWZm7UEL3qwzUCf+kD4alIY3uAoXymjWUU+42WgeTrF5k+JvZjgyNX\r\naH7aTygp/pQsav3JhopCrw6BxEt0/KzfAxobO8F8DKzsBNaJGil85rD18QRr\r\nv5JJwVOnv6mp4QRougDeM7Eccz93YSYx3AzMi7DLqSrS1bVMsg4bno7ns7g5\r\nb8rojHW556cXOhC2kulxrbV4MwmWanuzmUh3/HW3QxD8kokR2bqu00BWko8c\r\nkb1eClzC4DZTCj0ywnSskdaaYFq6LRt6B4ub1mliVKlWJFKAuZSf/ZjwUjIg\r\ncQnemz7Fi97C2cdQDPtIzurYufyr8arrmRKrqJofNSk+tGor68/6x8n5niSZ\r\ntF/MUpVgndH/g1qpyW+J2nsUwloXWEbp0HdOJ4rBJYRQDBCjd89bLkthxd8I\r\nbnOqwa9nJtR4fwS/FBV0R+ZsV5R30GSyJdh8XTiNO+lS4nSqgmwJhOhyYcOB\r\nrobeYWsdFT6NHpHmqAhpK6+OHWj8/NA56k8mGfKD86oz6wkjOixICDEGds1R\r\nXdJWcK66lMLdXMiwzXM6x4Mj01RVdb3knA2J890ykeyn/oBQbcJP8vopTsU3\r\nqHfKyKcxz29WfT0VVMZou8NzJDgEvq+UAOU=\r\n=6OA3\r\n-----END PGP SIGNATURE-----\r\n","size":8109},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_3.0.0_1647812422292_0.23695522101411615"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-20T21:40:25.801Z","contributors":[]},"3.1.0":{"name":"git-format-staged","version":"3.1.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^4.2.5","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^19.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"gitHead":"d183425f4f0e9f99aa701674c1bd187ecc04fd59","_id":"git-format-staged@3.1.0","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-3iG9xD4PR3mqKQlrVDdMcg+8YoCd2BqJR1PzznVbZaghLDTQyu2Uqb5C3GsGOUzviXJOzpK87qd93P15X3HUCg==","shasum":"d74e9ddbfb9b13b0440d5918b75bd30ac35abacf","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-3.1.0.tgz","fileCount":4,"unpackedSize":23431,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpeGTkWUTqfqvtGj45l66PwZqs3FU4V02xYjnb6ru3agIgG6z6UNVdV+4U5URtfUaZxk3cqHwWKtGrIh5/2SXDzrA="}],"size":8270},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_3.1.0_1708904193399_0.8944120152110815"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-25T23:36:33.566Z","publish_time":1708904193566,"_source_registry_name":"default","contributors":[]},"3.1.1":{"name":"git-format-staged","version":"3.1.1","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^4.2.5","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^19.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"gitHead":"a4c636ccd49e5ecf8d925dae561d748714435b38","_id":"git-format-staged@3.1.1","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-P749fkktaiAchFZKR7bgdvruzhvbcIDr1uRBrS9/Wdimb7wH1Twchz9gOixj8tUaHVMuXY/ckDojfOwV6AxgPA==","shasum":"017862422263579c14cc0a4f46c0a9111ac2e0fd","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-3.1.1.tgz","fileCount":4,"unpackedSize":23434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2RDQMTwG4eHEcdhN8+YKeCW0SyBEAHPlbbMVY9+3AIwIhAImpZXfOAVaW/CzRhGvAtH+M/nwXLuznsWsHZ7haJt9H"}],"size":8270},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-format-staged_3.1.1_1709060777579_0.9062320667017845"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-27T19:06:17.814Z","publish_time":1709060777814,"_source_registry_name":"default","contributors":[]},"3.1.2":{"name":"git-format-staged","version":"3.1.2","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^19.0.3","@commitlint/config-conventional":"^19.0.3","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^9.0.11","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^23.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"_id":"git-format-staged@3.1.2","gitHead":"36ef48fec6974bb5d8964aa20da67ea9d3603a42","_nodeVersion":"22.21.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Rnwj9+Te/EEi9zLQHotGYksMHAhYH62MUembu2QfBujcLACYyk3FkHEKldZxFjNN7MpRXC1/OPCcT6QhaFBuLg==","shasum":"f4d075b3cc694a4e371fcdfbbb89be745a3aaeb9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-3.1.2.tgz","fileCount":4,"unpackedSize":24069,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFyn+IeHgHfTljxnE62ZRMaWak1VbCgusIBtPkbCenJ+AiEAwApx98lOj19ptNJP/0XO6FYgxOnVmqkeG6Ro3L9KzMM="}],"size":8515},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-format-staged_3.1.2_1767062841515_0.5855416272325122"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-30T02:47:21.646Z","publish_time":1767062841646,"_source_registry_name":"default","contributors":[]},"4.0.0":{"name":"git-format-staged","version":"4.0.0","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^19.0.3","@commitlint/config-conventional":"^19.0.3","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^23.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"_id":"git-format-staged@4.0.0","gitHead":"353da8f2f994d6251014d6213288825ce2844a02","_nodeVersion":"22.21.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-+nUXPctrdpspomwGAETPIv+rPkUhxoZP4F1fwCjGl/FIYg+AxEF2ba6MrmmVLbtYCTJwnAhAhvEGBvxWolVjHw==","shasum":"4ea5543d3166cf6da50764a05859d65991f67ef3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-4.0.0.tgz","fileCount":4,"unpackedSize":24574,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDCwVJrZAslp/mBwBfthnrXK5l2SXq7f2K0ekWqpsJGmgIhAIr5Y6e+/rBT8ehfiAEoj4hXe6qHGsfNWj8DSZ+YsY8b"}],"size":8676},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-format-staged_4.0.0_1767148161538_0.6727946207038156"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-31T02:29:21.677Z","publish_time":1767148161677,"_source_registry_name":"default","contributors":[]},"4.0.1":{"name":"git-format-staged","version":"4.0.1","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepare":"update-npm-deps-hash || true","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^19.0.3","@commitlint/config-conventional":"^19.0.3","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^23.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"_id":"git-format-staged@4.0.1","gitHead":"3fc8d5ff35a57992000c2b90d7501c19acefab94","_nodeVersion":"22.21.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-8C9Bw4VtZxa+VNMGh8Og8qG+rH527q+8un1SKpVgo3ZZXTCGI/U9a6oyJAFlfkeYFrOh7rTWWfH1NbL+63Sttw==","shasum":"edc29748f4aea9fa17e80d2483a07f840f2b79c2","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-4.0.1.tgz","fileCount":4,"unpackedSize":28737,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIARE+70rimYShiyOAErRtzRkGDyc5qAZmLNY/LxdgV/BAiEAvDSs8PQiNOcQRsjgbK2aVtIbEbXp/4ByXCfJ/munqI4="}],"size":10014},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-format-staged_4.0.1_1767499115010_0.13828603253169214"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-04T03:58:35.144Z","publish_time":1767499115144,"_source_registry_name":"default","contributors":[]},"3.1.3":{"name":"git-format-staged","version":"3.1.3","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^19.0.3","@commitlint/config-conventional":"^19.0.3","@types/fs-extra":"^8.1.0","@types/tmp":"^0.1.0","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","husky":"^9.0.11","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^23.0.2","strip-indent":"^3.0.0","tmp":"0.2.0","ts-node":"^8.9.1","typescript":"^3.8.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"./git-format-staged --formatter prettier-standard '*.js'"}},"_id":"git-format-staged@3.1.3","readmeFilename":"README.md","gitHead":"b0646c92df0a030281d6ee107640544850282011","_nodeVersion":"22.21.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-dhRP6NoKCwsRuZ9pR0tIMPgJGeGODJs2V5oVrvmJzt7Iu55ctkRZtgE9dWKQ0UQwKPH6YMmYFV5nZ7pm18OyNg==","shasum":"bb5a7daccfeb91fd95364b6193792267385e9ea9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-3.1.3.tgz","fileCount":4,"unpackedSize":27054,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyS4LyqY+ekxsW2zLWyKxmqf+yjfRRUcYwSBxmow4++AIhALhywAZBJYVrgq+xpxMnklxNceuD9YoMrd7LfTlJfIg1"}],"size":9418},"_npmUser":{"name":"anonymous","email":"hallettj@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-format-staged_3.1.3_1767500209854_0.9033525985309974"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-04T04:16:50.019Z","publish_time":1767500210019,"_source_registry_name":"default","contributors":[]},"4.0.2":{"name":"git-format-staged","version":"4.0.2","description":"Git command to transform staged files according to a command that accepts file content on stdin and produces output on stdout.","scripts":{"test":"ava","prepare":"update-npm-deps-hash || true","prepublishOnly":"sed -i \"s/\\$VERSION/$npm_package_version/\" git-format-staged","semantic-release":"semantic-release"},"bin":{"git-format-staged":"git-format-staged"},"main":"./no-main.js","repository":{"type":"git","url":"git+https://github.com/hallettj/git-format-staged.git"},"keywords":["git","hook"],"author":{"name":"Jesse Hallett","email":"jesse@sitr.us"},"license":"MIT","bugs":{"url":"https://github.com/hallettj/git-format-staged/issues"},"homepage":"https://github.com/hallettj/git-format-staged#readme","devDependencies":{"@commitlint/cli":"^20.0.0","@commitlint/config-conventional":"^20.0.0","@types/fs-extra":"^11.0.4","ava":"^3.8.1","eslint":"^5.16.0","fs-extra":"^9.0.0","micromatch":"^4.0.2","prettier-standard":"^9.1.1","semantic-release":"^25.0.8","strip-indent":"^3.0.0","ts-node":"^10.9.2","typescript":"^5.9.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"files":["test/**/*_test.ts"]},"gitHead":"872aabf9c34d0e3fadb0640bd217565fd5bf2fc5","_id":"git-format-staged@4.0.2","_nodeVersion":"24.18.1","_npmVersion":"11.19.0","dist":{"integrity":"sha512-0fHxU5ZyxeCrTL+8BWugZKxqqS2Ba6OGCdyTeZW7kQJVuLbmxWJ2eNGZTjPxVQ8FGovBZsXZCmPRD2VSOWE82g==","shasum":"4007f4fd75e3abfa2ae2d1f129398149fbc10260","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/git-format-staged/-/git-format-staged-4.0.2.tgz","fileCount":4,"unpackedSize":29003,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/git-format-staged@4.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGV5ECfXTwbFp7C216L79ILDGA0sgdOuQKgi6blpJoQ8AiAIxWq2UI9/sTXtX99xy4l3PYOftu3tUlkwFDRK1JvsTA=="}],"size":10126},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:d9adee28-013c-4a52-86ab-3f1bc99a6513"}},"directories":{},"maintainers":[{"name":"anonymous","email":"hallettj@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/git-format-staged_4.0.2_1785741432247_0.9979354020081637"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-03T07:17:12.381Z","publish_time":1785741432381,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"4.0.2","release-3.x":"3.1.3"},"name":"git-format-staged","time":{"created":"2022-01-26T19:19:30.498Z","modified":"2026-08-03T07:17:32.860Z","2.1.3":"2021-12-14T15:58:59.792Z","2.1.2":"2021-06-10T20:49:59.559Z","2.1.1":"2021-01-06T16:03:18.907Z","2.1.0":"2018-07-27T23:26:53.550Z","2.0.0":"2018-06-11T15:21:16.024Z","1.1.0":"2018-06-03T17:48:35.109Z","1.0.0":"2018-05-27T21:11:11.271Z","3.0.0":"2022-03-20T21:40:22.446Z","3.1.0":"2024-02-25T23:36:33.566Z","3.1.1":"2024-02-27T19:06:17.814Z","3.1.2":"2025-12-30T02:47:21.646Z","4.0.0":"2025-12-31T02:29:21.677Z","4.0.1":"2026-01-04T03:58:35.144Z","3.1.3":"2026-01-04T04:16:50.019Z","4.0.2":"2026-08-03T07:17:12.381Z"},"readme":"# git-format-staged\n\nConsider a project where you want all code formatted consistently. So you use\na formatting command. (For example I use [prettier][] in my Javascript and\nTypescript projects.) You want to make sure that everyone working on the project\nruns the formatter, so you use a tool like [husky][] to install a git pre-commit\nhook. The naive way to write that hook would be to:\n\n- get a list of staged files\n- run the formatter on those files\n- run `git add` to stage the results of formatting\n\nThe problem with that solution is it forces you to commit entire files. At\nworst this will lead to contributors to unwittingly committing changes. At\nbest it disrupts workflow for contributors who use `git add -p`.\n\ngit-format-staged tackles this problem by running the formatter on the staged\nversion of the file. Staging changes to a file actually produces a new file\nthat exists in the git object database. git-format-staged uses some git\nplumbing commands to send content from that file to your formatter. The command\nreplaces file content in the git index. The process bypasses the working tree,\nso any unstaged changes are ignored by the formatter, and remain unstaged.\n\nAfter formatting a staged file git-format-staged computes a patch which it\nattempts to apply to the working tree file to keep the working tree in sync\nwith staged changes. If patching fails you will see a warning message. The\nversion of the file that is committed will be formatted properly - the warning\njust means that working tree copy of the file has been left unformatted. The\npatch step can be disabled with the `--no-update-working-tree` option.\n\n[prettier]: https://prettier.io/\n[husky]: https://www.npmjs.com/package/husky\n\n## How to install\n\n### Install with Nix\n\nInstall via the CLI:\n\n    $ nix profile install github:hallettj/git-format-staged\n\nOr add to your flake imports, and use the `default` package output.\n\n### Install with NPM\n\nRequires Python 3.8 or later.\n\nInstall as a development dependency in a project that uses npm packages:\n\n    $ npm install --save-dev git-format-staged\n\nOr install globally:\n\n    $ npm install --global git-format-staged\n\n### Install with Homebrew\n\nInstall globally using [homebrew]:\n\n    $ brew install git-format-staged\n\n[homebrew]: https://brew.sh/\n\n### Or just copy the script\n\nRequires Python 3.8 or later.\n\nIf you do not use the above methods you can copy the\n[`git-format-staged`](./git-format-staged) script from this repository and\nplace it in your executable path. The script is MIT-licensed - so you can check\nthe script into version control in your own open source project if you wish.\n\n## How to use\n\nFor detailed information run:\n\n    $ git-format-staged --help\n\nThe command expects a shell command to run a formatter, and one or more file\npatterns to identify which files should be formatted. For example:\n\n    $ git-format-staged --formatter 'prettier --stdin-filepath {}' 'src/*.js'\n\nThat will format all files under `src/` and its subdirectories using\n`prettier`. The file pattern is tested against staged files using Python's\n[`fnmatch`][] function: each `*` will match nested directories in addition to\nfile names.\n\n[`fnmatch`]: https://docs.python.org/3/library/fnmatch.html#fnmatch.fnmatch\n\nThe formatter command must read file content from `stdin`, and output formatted\ncontent to `stdout`.\n\nNote that the syntax of the `fnmatch` glob match is a is a bit different from\nnormal shell globbing. So if you need to match multiple patterns, you should\npass multiple arguments with different patterns, and they will be grouped.\nSo instead of e.g. `'src/**/*.{js,jsx,ts}'`, you would use:\n\n    $ git-format-staged --formatter 'prettier --stdin-filepath {}' 'src/*.js' 'src/*.jsx' 'src/*.ts'\n\nFiles can be excluded by prefixing a pattern with `!`. For example:\n\n    $ git-format-staged --formatter 'prettier --stdin-filepath {}' '*.js' '!flow-typed/*'\n\nPatterns are evaluated from left-to-right: if a file matches multiple patterns\nthe right-most pattern determines whether the file is included or excluded.\n\ngit-format-staged never operates on files that are excluded from version\ncontrol. So it is not necessary to explicitly exclude stuff like\n`node_modules/`.\n\nThe formatter command may include a placeholder, `{}`, which will be replaced\nwith the path of the file that is being formatted (with appropriate quoting).\nThis is useful if your formatter needs to know the file extension to determine\nhow to format or to lint each file. For example:\n\n    $ git-format-staged -f 'prettier --stdin-filepath {}' '*.js' '*.css'\n\nDo not attempt to read or write to `{}` in your formatter command! The\nplaceholder exists only for referencing the file name and path.\n\n### Check staged changes with a linter without formatting\n\nPerhaps you do not want to reformat files automatically; but you do want to\nprevent files from being committed if they do not conform to style rules. You\ncan use git-format-staged with the `--no-write` option, and supply a lint\ncommand instead of a format command. Here is an example using ESLint:\n\n    $ git-format-staged --no-write -f 'eslint --stdin --stdin-filename {} >&2' 'src/*.js'\n\nIf this command is run in a pre-commit hook, and the lint command fails the\ncommit will be aborted and error messages will be displayed. The lint command\nmust read file content via `stdin`. Anything that the lint command outputs to\n`stdout` will be ignored. In the example above `eslint` is given the `--stdin`\noption to tell it to read content from `stdin` instead of reading files from\ndisk, and messages from `eslint` are redirected to `stderr` (using the `>&2`\nnotation) so that you can see them.\n\n### Set up a pre-commit hook\n\nA git pre-commit hook runs automatically whenever you make a commit, before your\neditor opens to write a commit message. If formatting fails with a non-zero exit\nstatus it will cancel the commit, requiring you to fix the problem before trying\nagain. (You can always skip a pre-commit hook by running `git commit\n--no-verify`.) But in most cases you will have correctly formatted files at all\ntimes, without having to think about it again after setup. Whenever a file is\nchanged as a result of formatting on commit you will see a message in the output\nfrom `git commit`.\n\nThere are a number of options for setting up a git pre-commit hook depending on\nthe software ecosystem you are working with.\n\n#### Write a pre-commit hook manually\n\nYou can write a hook manually by creating the file `.git/hooks/pre-commit`, and\nmaking it executable. A hook set up this way will _not_ automatically propagate\nto other clones, so every collaborator will have to do this themselves.\n\n#### Nix devShell\n\nIf you use a Nix devShell you can use [nix-git-hooks][] to help set up\na pre-commit hook automatically. You can either automatically install hooks for\neveryone who uses the devShell, or provide a command that collaborators can run\nto easily opt in to hooks. Take a look at how this repo uses nix-git-hooks in\n[flake.nix](./flake.nix).\n\n[nix-git-hooks]: https://github.com/ysndr/nix-git-hooks\n\n#### Npm, yarn, pnpm, or bun\n\n[Husky][] will automatically install git hooks for all project collaborators\nafter running package manager commands.\n\n[Husky]: https://typicode.github.io/husky/get-started.html\n\n#### Rust with Cargo\n\n[cargo-husky][] is like Husky, but for Rust projects.\n\n[cargo-husky]: https://crates.io/crates/cargo-husky\n\n#### and more!\n\nSee more hook management options in [awesome-git][] and [awesome-git-hooks][].\n\n[awesome-git]: https://github.com/dictcp/awesome-git?tab=readme-ov-file#hook-management.\n[awesome-git-hooks]: https://github.com/compscilauren/awesome-git-hooks?tab=readme-ov-file#tools\n\n## Comparisons to similar utilities\n\nThere are other tools that will format or lint staged files. What distinguishes\ngit-format-staged is that when a file has both staged and unstaged changes\ngit-format-staged ignores the unstaged changes; and it leaves unstaged changes\nunstaged when applying formatting.\n\nSome linters (such as [precise-commits][]) have an option to restrict linting\nto certain lines or character ranges in files, which is one way to ignore\nunstaged changes while linting. The author is not aware of a utility other than\ngit-format-staged that can apply any arbitrary linter so that it ignores\nunstaged changes.\n\nSome other formatting utilities (such as [pre-commit][])\nuse a different strategy to keep unstaged changes unstaged:\n\n1. stash unstaged changes\n2. apply the formatter to working tree files\n3. stage any resulting changes\n4. reapply stashed changes to the working tree.\n\nThe problem is that you may get a conflict where stashed changes cannot be\nautomatically merged after formatting has been applied. In those cases the user\nhas to do some manual fixing to retrieve unstaged changes. As far as the author\nis aware git-format-staged is the only utility that applies a formatter without\ntouching working tree files, and then merges formatting changes to the working\ntree. The advantage of merging formatting changes into unstaged changes (as\nopposed to merging unstaged changes into formatting changes) is that\ngit-format-staged is non-lossy: if there are conflicts between unstaged changes\nand formatting the unstaged changes win, and are kept in the working tree,\nwhile staged/committed files are formatted properly.\n\nAnother advantage of git-format-staged is that it has no dependencies beyond\nPython and git, and can be dropped into any programming language ecosystem.\n\nSome more comparisons:\n\n- [lint-staged][] lints and formats staged files. At the time of this writing\n  it does not have an official strategy for ignoring unstaged changes when\n  linting, or for keeping unstaged changes unstaged when formatting. But\n  lint-staged does provide powerful configuration options around which files\n  should be linted or formatted, what should happen before and after linting,\n  and so on.\n- [pretty-quick][] formats staged files with prettier. By default pretty-quick\n  will abort the commit if files are partially staged to allow the user to\n  decide how to re-stage changes from formatting. The result is more manual\n  effort compared to git-format-staged.\n- the one-liner\n  `git diff --diff-filter=d --cached | grep '^[+-]' | grep -Ev '^(--- a/|\\+\\+\\+ b/)' | LINT_COMMAND`\n  (described [here][lint changed hunks]) extracts changed hunks and feeds them\n  to a linter. But linting will fail if the linter requires the entire file for\n  context. For example a linter might report errors if it cannot see import\n  lines.\n\n[precise-commits]: https://github.com/nrwl/precise-commits\n[pre-commit]: https://pre-commit.com/#pre-commit-during-commits\n[pretty-quick]: https://www.npmjs.com/package/pretty-quick\n[lint-staged]: https://github.com/okonet/lint-staged\n[lint changed hunks]: https://github.com/okonet/lint-staged/issues/62#issuecomment-383217916","users":{}}