{"name":"graceful-git","version":"3.0.0","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":"^3.4.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.0","_shasum":"3759b26da97c7a3892a2b8f9243f7d561958a2d2","_from":".","_npmVersion":"4.6.1","_nodeVersion":"12.11.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"3759b26da97c7a3892a2b8f9243f7d561958a2d2","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-3.0.0.tgz","integrity":"sha512-idkojAqd8S4S5nJvLVNADO/nnaQRrKoFozeVr7Gfwtx3mo2oJSC/3SW9/wl1G8VBspVXu7i/u4mx1e33d9AnMw==","fileCount":4,"unpackedSize":3784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3IEHCRA9TVsSAnZWagAAzzwP/2a8L/nUGvbOK0jHKkL3\nUmVB4dVqYiyL6J/4DN114I0stS88V9E80W6Tj/WqPO0YgLhcIuN7xny401jL\nNEp3ny4kKHc5GijayaXRHsX8UlY1Xm7ip8Oh9argzf3jKxutWHs8yshoC7Mr\n05DeXLCq8jFLHu7zKyWqwowI1Hpj5PBOHO+DwBK5uhwvI1/Yt12arQ1Z3ocq\nQ+6o2uI4Az2zVmBOfHSdHLRQdex5FqvyJBd8ME60UimCy9Rm+7x7rRzdJllf\n8WSb0H2dJhskiMmTAPjZlAe/zX6UGVA/OIVrvVY5LDz2otRbZy7Un/A2JiGD\nLYkBbyrVS2+IKyTIRkXTUBpp2HXuM/sfdBnTln67vGMK6IJ2mFxXvl5/iQ/B\nC9auVfby2865IYhh+VHb0s6GP+eIlK7XK7GxHHm96XKIsPs6eECvhR3QWLe7\n0CoQfbRujELth/yZmEDIwcQEJXQ8FGG0SBMRD68F4tj7317ZYV0jHs+1Itsg\nuJHWg493EOl1Q2wxhoKNcSXvyvf4L7eD85zpueAXaQVKy7/eLHYYtfG17zrN\nnkYi1Ip3fry03Vn4Md5uBA61VHiv+7qiteajhvpwBm8aImeS1ESg6V5cI/vP\n/jzWrxx1cuVHJUsHMuRhZKUpYh6EWK3CyRuwFGgVCYaXdwjlUWL2YiY+pswG\ni/S4\r\n=d5EG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyxxFytMxoVhxWCJiEBvMgSwTuwNiZBtwV8y29kZAw3AiEA/YfceRdQtaVXehr3CAxIVu99k5TRqN8e82+XoT5YLLE="}],"size":2123,"noattachment":false,"key":"/graceful-git/-/graceful-git-3.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graceful-git_3.0.0_1574732038796_0.4533706045944037"},"_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":1574732038943,"_cnpm_publish_time":1574732038943,"dist-tags":{"latest":"5.0.0"}}