{"name":"graceful-git","version":"1.0.1","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.8.0","retry":"^0.10.1"},"devDependencies":{"mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^1.0.1","tape":"^4.6.3"},"gitHead":"9610a01d1b0adfccc9427b2166a0e0fe7a2f15a2","_id":"graceful-git@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-tw+EeUeL5p8b312uJq6+Z6ld8M/rlkMSM7e3oGiRsfdDH3nH5I2u2aIhO5Sy6LWojzU92JTrZKP6T3D9YT6pwg==","shasum":"cf89d9d88e103eea17d84de15d4caa63d1df539a","tarball":"http://registry-npm.ywwl.com/graceful-git/download/graceful-git-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLn8ETJULTz4Z5rhQ3LLUVu2u4YZNVImrWIX53kCypZAiEAsX2747HTgOtvvTGPR8WlNrYkF11zCZKlJjntlEpfdkw="}],"size":2113,"noattachment":false,"key":"/graceful-git/-/graceful-git-1.0.1.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graceful-git-1.0.1.tgz_1511812779376_0.7077985913492739"},"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":1511812779464,"_cnpm_publish_time":1511812779464,"dist-tags":{"latest":"5.0.0"}}