{"name":"graceful-git","version":"3.0.1","description":"Executes git commands gracefully. Retries them on errors","main":"index.js","engines":{"node":">=10"},"scripts":{"test":"preview && tape test.js","md":"preview && mos"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"repository":{"type":"git","url":"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":{"execa":"^4.0.0","retry":"^0.12.0"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"3.0.0","tape":"^4.11.0"},"_id":"graceful-git@3.0.1","_nodeVersion":"12.11.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-1dshAo83MPbG3snfKY+h5QtoNj5g9mG8ywvofkUJjYrOANvMARUEYz8IjQ1xkRpJvB6E8NJ5Z64vvS3D7f3RgA==","shasum":"b6b7053b9a711683f36f0ce78363bf1c256e1c6d","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-3.0.1.tgz","fileCount":4,"unpackedSize":3784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+5XRCRA9TVsSAnZWagAAts8P/0GSXJfgJrXJGwBo/h+P\nM891QM6yIt0/vfGRsISfpjbildxEu7VLK0XTHmr0fhvzjJdljgwDLRyLyMxJ\nwsZ4QvQKiypklanCHVOrh+YepqX+uA6X0K6tbNrNH37HyOXwARThHjvPdSFP\n9P8Y/+IDjWJxkRIoVFLmbDuYuwA9YF5uJJkt/27WXoy1ojDOXj1RKHM+wev6\nooH/xfmElg5hztT72OjEMhS99W+bapmAjbRjw0yDspY2XgGR1IBvdWopyJIL\niwZadinSVFE1IQPCja5MT7pZMBlZ9Xp7d6fAAudZWRivwv+R20LQbsXDH3L7\nKMcmirxeeka2tZ4ZsFDD0NLhk+Mw/ZJbe1rVuSxsvGufKIR3j7JmWA7LKH1/\nyvNxdfOHpLGN5C8h5Lceahboknz1Da8L0CuDm/BYZQAiOzB8JQM5UJX57Jyt\nLl/VX5SwmLx6NiaNoEprLefpQJ12kce/0H+mGEwGbltdA0UKPl+xGw5E+9e1\n3nIltB9sMF3Pd4LgZFYtrA4yk37oa8zNDVwAUpzQFDVgiNeMGvyLaCnhs1Yw\nlTuBNEGnq6QQJspKUGZtuYp5qxOfTMhtr2SXZRanyk/KEZ2rDoiF/qcl7QCJ\nOeyz1j5PdMgVya9IDqDiLEHlgJ/ovbu4v28bdRHR+px0CAneFNes9C0n1cum\n6mv5\r\n=3sMw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtTVPDVOs6e5rIwHeSnl6i7MGudHR6aKKKXVP5TLrfbgIhANin0+ucZJdyiOiAM4Wy2yyfqQzKlKzvxMgcqwWy290B"}],"size":2101,"noattachment":false,"key":"/graceful-git/-/graceful-git-3.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graceful-git_3.0.1_1576768974628_0.6212481440252766"},"_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":1576768974758,"_cnpm_publish_time":1576768974758,"dist-tags":{"latest":"5.0.0"}}