{"name":"graceful-git","version":"4.0.0","description":"Executes git commands gracefully. Retries them on errors","main":"index.js","engines":{"node":">=18.12"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"repository":{"type":"git","url":"git+https://github.com/zkochan/packages.git#main"},"keywords":["git","retry","retries","exec"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"license":"MIT","homepage":"https://github.com/zkochan/packages/tree/main/graceful-git#readme","dependenciesMeta":{"graceful-git":{"injected":true}},"dependencies":{"retry":"^0.13.1","safe-execa":"^0.1.1"},"devDependencies":{"graceful-git":"file:","mos":"2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","tape":"^5.3.2"},"scripts":{"test":"tape test.js","md":"mos"},"_id":"graceful-git@4.0.0","bugs":{"url":"https://github.com/zkochan/packages/issues"},"_integrity":"sha512-zK/rCH/I0DMKpPBLCElXGI7za3EnXeQFdiK6CTP02Tt1N1L+bMLghZY7cXozlx9M2bx4Q0zrY9ADYP3eI8haIw==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/ccd83a81595ed83b5816c04eac47f853/graceful-git-4.0.0.tgz","_from":"file:graceful-git-4.0.0.tgz","_nodeVersion":"20.11.1","_npmVersion":"10.8.1","dist":{"integrity":"sha512-zK/rCH/I0DMKpPBLCElXGI7za3EnXeQFdiK6CTP02Tt1N1L+bMLghZY7cXozlx9M2bx4Q0zrY9ADYP3eI8haIw==","shasum":"3c823974699a81b2fec108f3ebdac6b75f12e99a","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-4.0.0.tgz","fileCount":4,"unpackedSize":4193,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCByI5HMr241+K+OystN0aSjR9vN/LiKfo4w3Cw2pTV3QIhAJY9pVLvDQK3Ezuy5tE6dwt5xzZUPfEnwg9Q1KUtjYmJ"}],"size":2237,"noattachment":false,"key":"/graceful-git/-/graceful-git-4.0.0.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graceful-git_4.0.0_1720085266743_0.4306777173542018"},"_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":1720085266865,"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_cnpm_publish_time":1720085266865,"dist-tags":{"latest":"5.0.0"}}