{"name":"graceful-git","version":"3.1.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":"git+https://github.com/zkochan/packages.git#master"},"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":{"@zkochan/which":"^2.0.3","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.1.1"},"gitHead":"3f5ecee167d270fef684861d4c2c61b853943c5e","bugs":{"url":"https://github.com/zkochan/packages/issues"},"_id":"graceful-git@3.1.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-AVEgHKbEPyHHNdJyNjb044aH9AcH8vEQ1qz2o9C07ZzIMDE3sWkr03hfQcnoeFmMngQIGMF6LHmFD90PMrEwlg==","shasum":"ebade79d832edba0fd759174f33e5042fd6dc43e","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-3.1.0.tgz","fileCount":4,"unpackedSize":4268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQTrcCRA9TVsSAnZWagAAkF4P/3yk6pi687XN5WgFU3Nc\ncMy+v9oz7zeUTURVKgYNtrtTQIKZzwoCw6MePJsWgWV5/2tdGAJztIgUplFb\n2HObiF2a/ycD25qNqp328L2+udV3gADUQHPJwo0dFbIvRLXGFXE/oxC6UFe+\nz4yykYdCUCrUXW54B35iR/L2DMS5+J8qj4LD8lpANcITXMnHF32HKclCrtzh\nFsdMWwdpUt2eFVCMxFVyHbHaXHuuMND/0of/q99WD3Upi6sQPC4bCI3pjpVD\n0nGpUBX6TbC5LwNYWg+iNS4i9JuN7tshZo6GVBZJRhNIO33PKP+W+WGMTKTp\nwdFWtLVrF7DgFzRAS8maIBVe9LRJnef4eWitI5kft89W3C9+LsbG28A+U/mo\nnRN+YlhvQmsA0Tda5Btug3tujxURMkh8FAUV+ZS8gCrw2vlxz7KTPEWt2zQg\nKis+r+dFYjltYuyznf3vFDRn47GEZMW1QcRuPz6XwFSrlUilBe7Xj/fE/KUd\nx7B0DADyXtLEFl2Wnlvj9oqj8bmfUoWgyBAYLoz4eVzKYo4Wd0kWpYXBlN1V\nhyav1BEbU9Dyw3fPBQL+VTnr9KuBfF+oeKquQREj6qIVvPNd5N5TCiFUVXg5\nINoKclGneZquopmaVtXYBQmjPjYL4AL1vO72K6wstaj3i7HsM8V9wMIr0tWw\n5fhJ\r\n=lFJU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4PUv4wsn7OPMuEWLPvCRV8pybqm8lOQT8MpF32xs4FgIgRJrKtyYNN1WKme5D8Qr61DSu9uwZCXFtyjuxSUCNzaE="}],"size":2240,"noattachment":false,"key":"/graceful-git/-/graceful-git-3.1.0.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.0_1631664860564_0.5357819018999077"},"_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":1631664860704,"_cnpm_publish_time":1631664860704,"dist-tags":{"latest":"5.0.0"}}