{"_id":"git-default-branch","_rev":"2786307","name":"git-default-branch","description":"Returns Git default branch name","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"npm:sapegin","email":""},{"name":"sapegin","email":"artem@sapegin.ru"}],"time":{"modified":"2022-06-21T07:48:22.000Z","created":"2020-11-12T07:43:15.007Z","1.0.0":"2020-11-12T07:43:15.007Z"},"users":{},"author":{"name":"Artem Sapegin","url":"https://sapegin.me"},"repository":{"type":"git","url":"git+https://github.com/sapegin/git-default-branch.git"},"versions":{"1.0.0":{"name":"git-default-branch","version":"1.0.0","description":"Returns Git default branch name","author":{"name":"Artem Sapegin","url":"https://sapegin.me"},"homepage":"https://github.com/sapegin/git-default-branch","repository":{"type":"git","url":"git+https://github.com/sapegin/git-default-branch.git"},"license":"MIT","engines":{"node":">=10"},"main":"index.js","scripts":{"lint":"eslint . --cache --fix","pretest":"npm run lint","format":"prettier --loglevel warn --write \"**/*.{js,md}\"","posttest":"npm run format","test:jest":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage","test":"npm run test:jest --"},"keywords":["git","branch","default","master","main","name"],"dependencies":{},"devDependencies":{"eslint":"^7.12.1","eslint-config-tamia":"^7.2.6","husky":"^4.3.0","jest":"^26.6.1","lint-staged":"^10.5.0","prettier":"^2.1.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.js":"eslint --cache --fix","*.{js,md}":"prettier --write"},"gitHead":"cd9a72132713f9a4c9d45d853ad4479bb105b156","bugs":{"url":"https://github.com/sapegin/git-default-branch/issues"},"_id":"git-default-branch@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"shasum":"5e6eeb3ac9e4c89500514d53b0f8773183c80b6d","size":1951,"noattachment":false,"key":"/git-default-branch/-/git-default-branch-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-default-branch/download/git-default-branch-1.0.0.tgz"},"_npmUser":{"name":"sapegin","email":"artem@sapegin.ru"},"directories":{},"maintainers":[{"name":"npm:sapegin","email":""},{"name":"sapegin","email":"artem@sapegin.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-default-branch_1.0.0_1605166994874_0.7742327863249614"},"_hasShrinkwrap":false,"publish_time":1605166995007,"_cnpm_publish_time":1605166995007,"_cnpmcore_publish_time":"2021-12-16T22:13:10.770Z"}},"readme":"# git-default-branch\n\nReturns Git default branch name (usually `main` or `master`).\n\n## Installation\n\n```\nnpm install git-default-branch\n```\n\n## Usage\n\n```js\nconst gitDefaultBranch = require('git-default-branch');\n\nconsole.log(gitDefaultBranch());\n// -> main\n```\n\n## Changelog\n\nThe changelog can be found on the [Releases page](https://github.com/sapegin/git-default-branch/releases).\n\n## Contributing\n\nEveryone is welcome to contribute. Please take a moment to review the [contributing guidelines](Contributing.md).\n\n## Authors and license\n\n[Artem Sapegin](https://sapegin.me) and [contributors](https://github.com/sapegin/git-default-branch/graphs/contributors).\n\nMIT License, see the included [License.md](License.md) file.\n","_attachments":{},"homepage":"https://github.com/sapegin/git-default-branch","bugs":{"url":"https://github.com/sapegin/git-default-branch/issues"},"license":"MIT"}