{"name":"graceful-git","version":"3.1.1","description":"Executes git commands gracefully. Retries them on errors","main":"index.js","engines":{"node":">=10"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"repository":"https://github.com/zkochan/packages/tree/master/graceful-git","keywords":["git","retry","retries","exec"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/master/graceful-git#readme","dependencies":{"retry":"^0.12.0","safe-execa":"^0.0.1"},"devDependencies":{"mos":"2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"3.0.0","tape":"^5.1.1"},"scripts":{"test":"preview && tape test.js","md":"preview && mos"},"_id":"graceful-git@3.1.1","_integrity":"sha512-3BENxv3yhNwcehCzh05pVZSlh1LGzl3fOcj8bjlB1rgl1d+oO8yp++WW/Gu/BDwErcTigKphFRc0c5B0RsdwbA==","_resolved":"C:\\src\\packages\\graceful-git\\graceful-git-3.1.1.tgz","_from":"file:graceful-git-3.1.1.tgz","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-3BENxv3yhNwcehCzh05pVZSlh1LGzl3fOcj8bjlB1rgl1d+oO8yp++WW/Gu/BDwErcTigKphFRc0c5B0RsdwbA==","shasum":"d2933a9da0398115ef0b1b4dfa4b212946da2396","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-3.1.1.tgz","fileCount":4,"unpackedSize":4139,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQn+mCRA9TVsSAnZWagAAebwP/39YsbvexulDn0dYDxi2\n1r+ipDHR4baF11xwqwJwXHMhLLdpVG19HupOpfdSFfREmLcWDhDriWPgq0LQ\nl1+2IXG9LwifIgGXtjyYnmoCjoFYMiOw2TL1ziHrUnunwH2FosGyKOhKdJmL\nVWfXyOARxdlBFHsZdKb/vPhbmHSg69sLRnjlezXo1V9zEQYmFb/TxbfxK6dU\niAGjStsrKkm8nUhx4pjVonTjZE+DcvpyH1jEMw5VFcbXRg/Z8ZL2f54Qfyf6\nK0qyTIcg7McXlQth3iTAgkoxzCjEyfmUvp1Pp9TcX3QjTD5hVHhYu0p3g3UR\nwkebXikCs99TmZmY74uf/DMpAL8kMqwjlg6nQp2IdJs2dn1eWvkFo76k4MoH\npQbjlSLrESWtOhJ4AZCTb1truRqCZNogAXNrcIkbpHG3pSbf5LB1k9zV20sk\nx8EnMOLbs4cxeWYGfoZDZbfjn+ys7g0vPEy9y4T4Rn74ZJ8BmitnscRsXs1Z\nhrEFPMWK4PvVYTwKhT07CgNR3jagbmDU+zen75sxW8IUwlgOYhfTuMm8ktdQ\nFK9vy59eC/Wbtjzkp0jfannihKT4nrMKcDZke8sDIHmoBZE4nExwcdSH5CLT\n2z/gsdv1TPeQIdZYAbh+UISShlQURe2892C+ldy/E46krqVVn03LEZNicpMh\nL0UD\r\n=xoiT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCesuh5/M8IzF4TkLghREzQF3EnakffPdOGGBY3n+l8sQIgLd+jij5gWMv+Bws0xVKlgK56uW9RZ61ReaqlfwHM0Ns="}],"size":2220,"noattachment":false,"key":"/graceful-git/-/graceful-git-3.1.1.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graceful-git_3.1.1_1631748005729_0.8647173776406676"},"_hasShrinkwrap":false,"readme":"# graceful-git\n\n> Executes Git commands gracefully. Retries on errors\n\nGit is called by absolute path to avoid binary planting attacks on Windows.\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/graceful-git.svg)](https://www.npmjs.com/package/graceful-git)\n<!--/@-->\n\n## Installation\n\n```sh\n<npm|yarn|pnpm> add graceful-git\n```\n\n## Usage\n\n<!--@example('./example.js')-->\n```js\n'use strict'\nconst gracefulGit = require('graceful-git')\n\ngracefulGit(['status', 'README.md'])\n  .then(result => console.log(result.stdout))\n  .catch(err => console.error(err))\n  //> On branch master\n  //  Your branch is based on 'origin/master', but the upstream is gone.\n  //    (use \"git branch --unset-upstream\" to fixup)\n  //  nothing to commit, working directory clean\n```\n<!--/@-->\n\n## API\n\n### `git(args, [opts]) => Promise`\n\n**Arguments:**\n\n- `args` - _string\\[]_ - arguments passed to the Git CLI\n- `opts.cwd` - _Path_ - the directory in which the Git command should be executed\n- `...opts` - _object_ - optional. Parameters used by [retry](https://www.npmjs.com/package/retry) when git operation fails.\n\n### `git.noRetry(args, [opts]) => Promise`\n\nSame as `git()` but without retries.\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io)\n","publish_time":1631748006058,"_cnpm_publish_time":1631748006058,"dist-tags":{"latest":"5.0.0"}}