{"name":"graceful-git","version":"3.0.2","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":"^5.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":"^5.0.1"},"_id":"graceful-git@3.0.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-fZ5zG+uT3zRqpRU7kXEUQkbRfIK66JRLfV528Glm703gr/qVfF0zppqC4ksuO1fLmlxBNAxLqQUfhF/vAriMtQ==","shasum":"c3400a945fcec34dc10837928b9028dcb8466cf3","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-3.0.2.tgz","fileCount":5,"unpackedSize":3914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4QLZCRA9TVsSAnZWagAAfvsQAIBFTl+uThioZ1xTFcvR\nrPpFrO88K8qnb/PRiX1JxjO4IvT+jZe8CtEpHKsoqQhHyBhWwgu0D8+gzya+\nzHs5waZJTXdF4l+1+cGrywsQt8m2nXajWxyWpSFLWcA+Jy9whhq63NRX1y1s\nVLlO4rJpJSa5V/grEnr8urECJLyZ5XoG72CB7mhkxKOVyUrdZXs0FUWFLrbb\n+EX7dkp4rxhJoFvZWzTY7116NtMmFjBGY9zt1JQiMrPHJPfa+YzX0EITaE4V\nMVz4BFh7VbMj3ok2dAW2IuOapKZhDhXPYOinHrYLUgoaYlZRf45FmeHhkdhJ\nKJstaEHbyJzoLmWrCMz9wX++3PJBOPJVtbAg4qS6GIaMfyyNnZlG5LwkKSpR\nY+sC5L+pozbX+HxtNzrEBOnQx7zkcF8hvYqpWKE9ViLoPvFaHhnkO7FaP5fd\n2FI6P7/ZlYRUBWV3U2Wk6U3/twcUdkpssB0LPa+EzPXdi/OGnW2C+zO5IvUH\n0CUoLxvTm/Ksd0r+mvOPvUWk4++/7/YGcNEQYLAH74MBcShG+Ot3+fNsaCJg\nwzMBFOSz+43vkDSrdRnzzR4SUMCy5rYkLe7z6FIiA11KZbC8ucMLjY6onngP\nExwye2PgvppgdKDRP1hxiqQfBgAiiJt1Cb+GFSWipGXzLtPTy17VumpEla/T\ndSFK\r\n=YOLw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwKmxbA0WZgtEC508vjotSrykoE3Dx92Bq+wsh9FqW7AiEA16PFpWxzTWfSv5vCt3XY8M1qNv9wYP6H6R0Wn4NIDCI="}],"size":2177,"noattachment":false,"key":"/graceful-git/-/graceful-git-3.0.2.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.0.2_1608581848540_0.7040915511877524"},"_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":1608581848686,"_cnpm_publish_time":1608581848686,"dist-tags":{"latest":"5.0.0"}}