{"_id":"pre-push","_rev":"16-d49b2de0612306ca4c52995a8fbd6c19","name":"pre-push","description":"Automatically install pre-push hooks for your npm modules.","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"pre-push","version":"0.1.0","description":"Automatically install pre-push hooks for your npm modules.","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.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","install":"node install.js","test":"mocha test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js","uninstall":"node uninstall.js"},"repository":{"type":"git","url":"git://github.com/dflourusso/pre-push.git"},"keywords":["git","hooks","npm","pre-push","prepush","run","test","development"],"author":{"name":"dflourusso"},"homepage":"https://github.com/dflourusso/pre-push","license":"MIT","dependencies":{"shelljs":"0.3.x"},"devDependencies":{"assume":"1.1.x","istanbul":"0.3.x","mocha":"2.1.x","pre-push":"git://github.com/dflourusso/pre-push.git"},"bugs":{"url":"https://github.com/dflourusso/pre-push/issues"},"gitHead":"e4b2ce656c07a2c0b9ca11aeea4bd48aaa00a68b","_id":"pre-push@0.1.0","_shasum":"760fae3619f5b55e33a0c5a1b4fcefd7e3975492","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"dflourusso","email":"dflourusso@gmail.com"},"dist":{"shasum":"760fae3619f5b55e33a0c5a1b4fcefd7e3975492","tarball":"https://registry.npmjs.org/pre-push/-/pre-push-0.1.0.tgz","integrity":"sha512-WUeZsGybht3MRMxYvKvFLCHCyx4p4QJz/QVnCserkgcNMz6XU86XYSlWcNdCs1VDcJEY9OSSdfIPPA0LO3Zn9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF0Nxm9zH7d6Lle6lXni+saI/w6SA9e5pNiVOHAaMsGHAiEAwtxycx3fcLDBB9B5T28XDqzEmUGKoOrBbwXptk4PJ60="}]},"maintainers":[{"name":"dflourusso","email":"dflourusso@gmail.com"}],"directories":{}},"0.1.1":{"name":"pre-push","version":"0.1.1","description":"Automatically install pre-push hooks for your npm modules.","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.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","install":"node install.js","test":"mocha test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js","uninstall":"node uninstall.js"},"repository":{"type":"git","url":"git://github.com/dflourusso/pre-push.git"},"keywords":["git","hooks","npm","pre-push","prepush","run","test","development"],"author":{"name":"dflourusso"},"homepage":"https://github.com/dflourusso/pre-push","license":"MIT","dependencies":{"shelljs":"0.3.x"},"devDependencies":{"assume":"1.1.x","istanbul":"0.3.x","mocha":"2.1.x","pre-push":"git://github.com/dflourusso/pre-push.git"},"bugs":{"url":"https://github.com/dflourusso/pre-push/issues"},"gitHead":"074c5e269f7be50d531ef6b473d9cfd817dcab98","_id":"pre-push@0.1.1","_shasum":"2a2a79827d243a76c91089897ac707f45e716aac","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"dflourusso","email":"dflourusso@gmail.com"},"dist":{"shasum":"2a2a79827d243a76c91089897ac707f45e716aac","tarball":"https://registry.npmjs.org/pre-push/-/pre-push-0.1.1.tgz","integrity":"sha512-2k9yvloaBW/HLLN/RCKKOutICNvFoVZcNXdTyNzbP0uXo0lfV2X91Y8sTTkP3irBvE2aFT8bAbLJu9e3QzZnQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClvh+Ap6ZGVjN8sHjKwBZ2ZWgIVAw/3Mn47BB5BSfGcAIhAIwsetFtYtcZTe8U1v+P6U+QtFW0HwImLo5RR9v2sGEn"}]},"maintainers":[{"name":"dflourusso","email":"dflourusso@gmail.com"}],"directories":{}},"0.1.2":{"name":"pre-push","version":"0.1.2","description":"Automatically install pre-push hooks for your npm modules.","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.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","install":"node install.js","test":"mocha test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js","uninstall":"node uninstall.js"},"repository":{"type":"git","url":"git://github.com/dflourusso/pre-push.git"},"keywords":["git","hooks","npm","pre-push","prepush","run","test","development"],"author":{"name":"dflourusso"},"homepage":"https://github.com/dflourusso/pre-push","license":"MIT","dependencies":{"cross-spawn":"^5.0.1","spawn-sync":"^1.0.15","which":"1.2.x"},"devDependencies":{"assume":"~1.5.0","istanbul":"0.4.x","mocha":"~3.3.0","pre-push":"git://github.com/dflourusso/pre-push.git"},"bugs":{"url":"https://github.com/dflourusso/pre-push/issues"},"gitHead":"cc3c0d1550519780439ed1e6ba83053757e68c8b","_id":"pre-push@0.1.2","_nodeVersion":"12.22.10","_npmVersion":"6.14.16","dist":{"integrity":"sha512-WymiU20I3W1yGV4VEqa+xOqaqGHYUz49R4ARvEdmYPgL07E/Gn7NLewI9k5g6KUc2EOaWE42rBb7nfVKYtkpCA==","shasum":"185bbde6e8dfe2ab6dff937b674f0cbfc5a98295","tarball":"https://registry.npmjs.org/pre-push/-/pre-push-0.1.2.tgz","fileCount":10,"unpackedSize":28954,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiM7oOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPKhAAlfSxhGhM/cC0fYo9Ll1jj11H/DvGMpJoN39Lg1BEYhcc6fgz\r\nCcSAfJar7oseUbQMLs6My/oguNEgwuy1vIiapmg1JLdg3wdLRijdlxoIalqw\r\nS+kpq3KsAWNfz5ilRnGCTitJXifrfSu+9nfDv9fdiXCY3VXXdz+NgQHDDsv0\r\nvWDcOGoFfLiR1oVYYVy0Ms/pUibGvN/9aA7q8dr9KnXSNb6Zw9lovniWhoaa\r\nacIDAZzyLP1XlVdLKZjJzV7A8EIDZtxPDXeZn1VOtZhTSP9gyjWNuVbpIiiA\r\nKfMygN050BdmF5WCYEi5zKd0SspB/tSisFpdiV70LzavZoKINif2jF4PAQRg\r\n9U6+pHaj2zXH4jZ3St+ERa9tEzRkJdMJeVT1R+26lNvYMGvZl44kcQjx2Eye\r\ne212IJdZjC72Mmzv3a+Ep45HiokWDwhurLh6KHNHA3aRWUwENsvqPZ8B2edR\r\nQu/eiov2mAaoZsuwyv7xrBApTSIf8rN3/CCbFbhtdrTlwejeC55PHot07TTs\r\nt/btzTfqEqhlVC/WHcVaJ3Lfa+T+iAGNKD8Bw7XYHo9MUdP7S3c+DZ6tXBqP\r\ng92PAk83S06TzQQww5LQLJLAiC/qg1l9aSUOM9Ihf4YPTjj4IQTf1xDzpoFq\r\nOdgMFeDRiXFygibCQw7uvLuilapbXM/ULsg=\r\n=fwx1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXcEBDmxp0VgCmdPJg8oCbswPCnJ9bR22eASb1hQPvaAiEAuZ1o1ZObG/kgz+llQSgzJtfGJho22eLjxtznNtQx5eM="}]},"_npmUser":{"name":"dflourusso","email":"dflourusso@gmail.com"},"directories":{},"maintainers":[{"name":"dflourusso","email":"dflourusso@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pre-push_0.1.2_1647557134672_0.4242674563429798"},"_hasShrinkwrap":false},"0.1.3":{"name":"pre-push","version":"0.1.3","description":"Automatically install pre-push hooks for your npm modules.","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.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","install":"node install.js","test":"mocha test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js","uninstall":"node uninstall.js"},"repository":{"type":"git","url":"git://github.com/dflourusso/pre-push.git"},"keywords":["git","hooks","npm","pre-push","prepush","run","test","development"],"author":{"name":"dflourusso"},"homepage":"https://github.com/dflourusso/pre-push","license":"MIT","dependencies":{"cross-spawn":"^5.0.1","spawn-sync":"^1.0.15","which":"1.2.x"},"devDependencies":{"assume":"~1.5.0","istanbul":"0.4.x","mocha":"~3.3.0","pre-push":"git://github.com/dflourusso/pre-push.git"},"bugs":{"url":"https://github.com/dflourusso/pre-push/issues"},"gitHead":"cc6830d893f0371008b1292aa5d00b9ddc991fd1","_id":"pre-push@0.1.3","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-PXc3tT7jq/H2VrEooQ8F9QCVfQawmd52CzWMemUrPlFnL8avaXY22NTuej3ClISy8EwStaB5myiigPBP4zqSbw==","shasum":"8ee739aea9bf3dd767203c3553b035829b55dc58","tarball":"https://registry.npmjs.org/pre-push/-/pre-push-0.1.3.tgz","fileCount":10,"unpackedSize":28954,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGZubE1Wtr8nRDwWjRA06A6YL799bAfxsZoPVZ/8jPIvAiEAp0fEEIQYqgItw2eXR1+JcEceJh5zfNyIRpVL3giC3bc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixtGQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPSQ//c7WNX+XHGJZHRLmd4qDuATF1Hz4kh0TE4WUqjEcWcRBn+fdH\r\nBOCeqhDnkRfF8HQhA/nr+ScgiI8R6lvmMlrX6T3RASBmnVq7bLf8k5sLVY09\r\nnl1jnY50MGkyomjIjg5VatruPv1SsxZ1+KwzzDOBZkDiIBgRZOnmIgwSAIFy\r\nXZQL/AHkwrAd0LD7/wdljahbFQiKiz7YZJcRVb03FQ3Q+iAKS/hj2Oi/V//d\r\n8GZvwpPDJUxRpGbx8STw96oqS4/oPLN+mRUIjwUgVtky3iv6Pg0oBkGW4B0t\r\nlbxZdyNudDxQoJzYr1HTzl7pNYf1pPlXKFs1q4eYOE+bWDnSJax2VPkEJX0S\r\nlDCakOGDO7dYxuq1PbMUXf+MBS19FTFZ2GZOBcwFtGeWo+tDRNCqzD28TlWo\r\nQyib7QeKiN+hYFHLWhOsHGOHyocv7bdaAOqIHGTpByoMVTH5PLG0Kbx2Edup\r\nEuS31+maRvMUvXdGCvaOTSzgc331EgzuDk6xCmRpfGU8Knywyp/of2EkhlKP\r\nSaCVyD3yIc3Iuc6y151mbYUMvzlzjU0izKb0vkcxlh5kbm6BxElABoKLVoad\r\nWLbWhex45LQ4nfgkunDSQE5P2TTaXDt1qvZGxVnXivUyaVsJn4JNVVNsjhuh\r\n7BN2ecipsZYGm7NpL/rs8SEOSKEKylevCQg=\r\n=eJFl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dflourusso","email":"dflourusso@gmail.com"},"directories":{},"maintainers":[{"name":"dflourusso","email":"dflourusso@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pre-push_0.1.3_1657196944610_0.4713815499438261"},"_hasShrinkwrap":false},"0.1.4":{"name":"pre-push","version":"0.1.4","description":"Automatically install pre-push hooks for your npm modules.","main":"index.js","scripts":{"coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.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","install":"node install.js","test":"mocha test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js","uninstall":"node uninstall.js"},"repository":{"type":"git","url":"git://github.com/dflourusso/pre-push.git"},"keywords":["git","hooks","npm","pre-push","prepush","run","test","development"],"author":{"name":"dflourusso"},"homepage":"https://github.com/dflourusso/pre-push","license":"MIT","dependencies":{"cross-spawn":"^5.0.1","spawn-sync":"^1.0.15","which":"1.2.x"},"devDependencies":{"assume":"~1.5.0","istanbul":"0.4.x","mocha":"~3.3.0","pre-push":"git://github.com/dflourusso/pre-push.git"},"bugs":{"url":"https://github.com/dflourusso/pre-push/issues"},"gitHead":"838cf7a9cdcd470b19ec61924f81ccfcef85ab08","_id":"pre-push@0.1.4","_nodeVersion":"14.20.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-bIdVuDQR3r5AWV7bM6OMHD3mCXA53Ql0LXmW5UfcSmJZq+J+TytqZ5YJcTmMLcojJysN65vcFIeCqRn6YidA+Q==","shasum":"48e7a29e15d3d7a83b62d5a02e10ba5dc40ab3aa","tarball":"https://registry.npmjs.org/pre-push/-/pre-push-0.1.4.tgz","fileCount":10,"unpackedSize":29065,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtFXB5w2mekq5wxAs61Bym6YHn+sQGNxgTrYFtbkFYIAiEAjXna5879oGsiSc99fixwoYedy91ao7xyh2VCRMF+fH0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJGXEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqb7A//Z6n8fwiP80StbKBgpTXXCYUbLsIeg4QKW0uXqPaR71J5hML/\r\ngMIgWaSVgjj5Tc5EZA0pGOyzyR+/Y7/VD2minH5WXPa8b62z1e8C3ZcQ30GB\r\ninsZpEAv2VxDZXxEf+/NmMl3UKejQ1sWypLwi1Bue3n+xUdk4b4W1hP7x/f4\r\nUXMRW9SZhjJAZQ8RWH0B0XgQxiguikez6AgJJqKNxTCBIhTtxv7Uu6CYiET4\r\n91j6brBBKCk7dX7OZkFUEXagV8VkZKa+zKuYsPdT/G+h44oK6+welEmKF/s5\r\n0FVycS0XxIp1OOWnyWvNhJKln/iWyZC1lDxFCdYyfb43VMJYnkCYsc3akK8Z\r\npighvubnetgo9RsOi6GfR8TDbaCzCNUoBdROq3qdhZQ7Mv01BF58mvGx9s6H\r\naL5PXLa08mtq5v2NKicZosjCan/SpkJa1kA5XMGyPvfiMVtk5g6LSAJ52E2i\r\n5gsdIwzifwLRmy760NzucVRD+ICeVEt/hA/jKI/fPGWosTxR/IENDgDKg9px\r\ngYKhVSE5emVZ++gzPnjaZ3mwrqMPMEFYqolDchwhr3/KPMIH2XfaAo4kzHef\r\na5TiLBWkRdhtaOJ7hqzNSZwBTOfNvgZQtfpYYGS7RDxZBolTIpqSTnxGmWLW\r\nWsBnopQ+7LdtOSqrnnC8pArV9ZNySxUZNIk=\r\n=Ypcw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dflourusso","email":"dflourusso@gmail.com"},"directories":{},"maintainers":[{"name":"dflourusso","email":"dflourusso@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pre-push_0.1.4_1663329732211_0.6973044893546732"},"_hasShrinkwrap":false}},"readme":"# pre-push\n\n\n<p>\n  <a href=\"https://www.npmjs.com/package/pre-push\"><img src=\"https://img.shields.io/npm/dm/pre-push.svg\" alt=\"Downloads\"></a>\n  <a href=\"https://www.npmjs.com/package/pre-push\"><img src=\"https://img.shields.io/npm/v/pre-push.svg\" alt=\"Version\"></a>\n  <a href=\"https://www.npmjs.com/package/pre-push\"><img src=\"https://img.shields.io/npm/l/pre-push.svg\" alt=\"License\"></a>\n</p>\n\n**pre-push** is a pre-push hook installer for `git`. It will ensure that\nyour `npm test` (or other specified scripts) passes before you can push your\nchanges. This all conveniently configured in your `package.json`.\n\nBut don't worry, you can still force a push by telling `git` to skip the\n`pre-push` hooks by simply pushing using `--no-verify`.\n\n### Installation\n\nIt's advised to install the **pre-push** 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 install --save-dev pre-push\n```\n\nor \n\n```\nyarn add -D pre-push\n```\n\nTo install it as `devDependency`. When this module is installed it will override\nthe existing `pre-push` file in your `.git/hooks` folder. Existing\n`pre-push` hooks will be backed up as `pre-push.old` in the same repository.\n\n### Configuration\n\n`pre-push` 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 `pre-push` is not limited to just running your `npm test`'s during the\npush hook. It's also capable of running every other script that you've\nspecified in your `package.json` \"scripts\" field. So before people push 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-push` array to your `package.json`\nthat specifies which scripts you want to have ran 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-push\": [\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 push fail as it returns the error\ncode `1`.  If you prefer strings over arrays or `prepush` without a middle\ndash, that also works:\n\n```js\n{\n  \"prepush\": \"foo, bar, test\"\n  \"pre-push\": \"foo, bar, test\"\n  \"pre-push\": [\"foo\", \"bar\", \"test\"]\n  \"prepush\": [\"foo\", \"bar\", \"test\"],\n  \"prepush\": {\n    \"run\": \"foo, bar, test\",\n  },\n  \"pre-push\": {\n    \"run\": [\"foo\", \"bar\", \"test\"],\n  },\n  \"prepush\": {\n    \"run\": [\"foo\", \"bar\", \"test\"],\n  },\n  \"pre-push\": {\n    \"run\": \"foo, bar, test\",\n  }\n}\n```\n\nThe examples above are all the same. In addition to configuring which scripts\nshould be ran you can also configure the following options:\n\n- **silent** Don't output the prefixed `pre-push:` 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 who's content should be used as template for the\n  git push body.\n\nThese options can either be added in the `pre-push`/`prepush` object as keys\nor as `\"pre-push.{key}` key properties in the `package.json`:\n\n```js\n{\n  \"prepush.silent\": true,\n  \"pre-push\": {\n    \"silent\": true\n  }\n}\n```\n\nIt's 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://npmjs.org/doc/scripts.html\n\nAnd to learn more about git hooks read:\n\nhttp://githooks.com\n\n### License\n\nMIT\n","maintainers":[{"name":"dflourusso","email":"dflourusso@gmail.com"}],"time":{"modified":"2022-09-16T12:02:12.487Z","created":"2015-06-05T18:32:40.366Z","0.1.0":"2015-06-05T18:32:40.366Z","0.1.1":"2015-06-05T19:09:14.855Z","0.1.2":"2022-03-17T22:45:34.907Z","0.1.3":"2022-07-07T12:29:04.782Z","0.1.4":"2022-09-16T12:02:12.423Z"},"homepage":"https://github.com/dflourusso/pre-push","keywords":["git","hooks","npm","pre-push","prepush","run","test","development"],"repository":{"type":"git","url":"git://github.com/dflourusso/pre-push.git"},"author":{"name":"dflourusso"},"bugs":{"url":"https://github.com/dflourusso/pre-push/issues"},"license":"MIT","readmeFilename":"README.md","users":{"docksteaderluke":true,"chrbala":true,"adeelp":true,"mathias.gilson":true,"sterlingrules":true,"isenricho":true}}