{"name":"graceful-git","version":"1.0.3","description":"Executes git commands gracefully. Retries them on errors","main":"index.js","files":["index.js"],"engines":{"node":">=4"},"scripts":{"test":"preview && tape test.js","md":"preview && mos"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"repository":{"type":"git","url":"git+https://github.com/zkochan/graceful-git.git"},"keywords":["git","retry","retries","exec"],"author":{"name":"Zoltan Kochan","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/zkochan/graceful-git/issues"},"homepage":"https://github.com/zkochan/graceful-git#readme","dependencies":{"execa":"^0.10.0","retry":"^0.12.0"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^1.0.1","tape":"^4.6.3"},"gitHead":"468b5ff35209feb485cfa43cfc146248c11ce3fb","_id":"graceful-git@1.0.3","_npmVersion":"5.8.0","_nodeVersion":"9.10.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-Dj9XJ9oBXFhz4hKzfuRoPyjGBW6iuFZxTe96VCzNvLVI4eBg3ZXzvVd/6L/QTXZmzoLZKI0JtLii2d0+dycMbA==","shasum":"b27f571d707b6914d779788e6dfeaca750652abd","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-1.0.3.tgz","fileCount":4,"unpackedSize":3911,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAY/21isgIpffbOa/C+UbCS/KqVs32flnaoJLk0hA9iUAiAzp14Ss2mUroN9InxJvoGcX6PKTV3UFPopFmwLlDI56w=="}],"size":2087,"noattachment":false,"key":"/graceful-git/-/graceful-git-1.0.3.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graceful-git_1.0.3_1523269061303_0.7473556017782095"},"_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":1523269061400,"_cnpm_publish_time":1523269061400,"dist-tags":{"latest":"5.0.0"}}