{"name":"graceful-git","version":"1.0.0","description":"Executes git commands gracefully. Retries them on errors","main":"index.js","files":["index.js"],"scripts":{"test":"tape test.js","md":"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.6.3","retry":"^0.10.1"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","tape":"^4.6.3"},"gitHead":"11bab4e73dfb1fdcc3c0fceb12fb291771430177","_id":"graceful-git@1.0.0","_shasum":"843a563de9cd372d3123e5d3b1246a6b44d38723","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"shasum":"843a563de9cd372d3123e5d3b1246a6b44d38723","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-1.0.0.tgz","integrity":"sha512-MeSY225n+fKgsXsmHJmQJ91bBFYIFfU0m5CSNentdmUpy04dz+wdVQxjaA6OlIgXsfmSjz7YI/rbYmwxlNqwtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/wT+n5cdZxYUKZwC5fOrzU+7YG5iZvh641hJPFLNvoAiAhb40RpYTPHAVU6cg+HywJTisJNnuTyMhqu6M6GG6WTQ=="}],"size":2064,"noattachment":false,"key":"/graceful-git/-/graceful-git-1.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/graceful-git-1.0.0.tgz_1492025495034_0.40981551818549633"},"directories":{},"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":1492025495712,"_cnpm_publish_time":1492025495712,"dist-tags":{"latest":"5.0.0"}}