{"author":{"name":"Gajus Kuizinas","email":"gajus@gajus.com","url":"http://gajus.com"},"dependencies":{"ini":"^1.3.5","ramda":"^0.26.1"},"description":"Gets information about a Git repository.","devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.4","@babel/preset-env":"^7.5.4","@babel/register":"^7.4.4","chai":"^4.2.0","eslint":"^6.0.1","eslint-config-canonical":"^17.1.3","husky":"^3.0.0","mocha":"^6.1.4"},"husky":{"hooks":{"pre-commit":"npm run lint && npm run test && npm run build"}},"keywords":["github","repository","info"],"license":"BSD-3-Clause","main":"./dist/gitinfo.js","name":"gitinfo","repository":{"type":"git","url":"git+https://github.com/gajus/gitinfo.git"},"scripts":{"build":"NODE_ENV=production babel ./src --out-dir ./dist --copy-files","lint":"eslint ./src ./tests","test":"NODE_ENV=test mocha --require @babel/register ./tests"},"version":"2.4.0","gitHead":"f0b3c76c6372143e8d538de943f983b5a989b039","bugs":{"url":"https://github.com/gajus/gitinfo/issues"},"homepage":"https://github.com/gajus/gitinfo#readme","_id":"gitinfo@2.4.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-cQU3oInRu7+LaPwFNlppP0NmJa1SBdZtNCUoo+XT/nGRbmwlhssbjkN7gQmfQZAuMxphghx0ACfbIQmMBmPT2w==","shasum":"a8061ea0fc9cbcee3819137bf1e3d92e15891738","tarball":"http://registry-npm.ywwl.com/gitinfo/download/gitinfo-2.4.0.tgz","fileCount":5,"unpackedSize":11551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKgx5CRA9TVsSAnZWagAAo5IP/3ZNEa2MDk3o/8NacCMh\nnPNN8oEdaQf384LyZJ2qbRD9gb8NzynaAYSKwOePy1k2Kl98iW+QdnV7rrIm\ndHOZ8DCVWR1TJgh1Rbj0aJynlnc0wCnwaCkKXO+RYTpbocPkDzvENaLUqff+\nb4qHxl/o+BQiXsTmeoso1SqVpIPswmKgc6oynlBLa+pc06en5WaYCQbKHCHs\nr8mkRkLJRvc3QakA1Kpcv8PsfDZuAvW9iI7Sr8Cklui2zoyyaJLC29+NzuRT\nNthS75wM5gkkaewRpMDr79vbADqCvZMTJfQnA1cSW8IbHcTPAwXT23QWYfXg\nfo7ajEVqfAQ95w5o20CzwoRRpa5FoS/unEl81VcgYWN6tReQqr6F0uoc623O\n+qYRbp6G7cVFFqzdSwWOa9z9KYy0oQU41y/kdEtCPOwsWvqs2sobH7a8DGo0\n9dInAshmM912dibSX+eBu3EBAhR/kw3H4u3KxjoddLTX17W9r9rqxWcfNSBA\ngVaenuXvrzxs9JKrrFbH5r84ixWOPst2pjNZhfN17VEFYRgGfCTbrBLZxJ9C\nvnJes2jYa41dm628+9Z/d2l8UM3IM6f4Uv03Q+Icd5/+ewyPBL3cBDF7raAV\nrAsakDMt+CAdThR9KCWvRckuYY+rubyrIBRw58SZDuH31NCkrjlvGcb7+95I\nO6YH\r\n=KUJh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCv9O/xpr/uss2AGG/2TS1ncQ9InSK1GqbXIZA9BMk5gIgbFYw52ihH2OJ/iVQYzbJaByJUwrVoyFSSEtkn83Xc6k="}],"size":3878,"noattachment":false,"key":"/gitinfo/-/gitinfo-2.4.0.tgz"},"maintainers":[{"email":"gajus@gajus.com","name":"gajus"}],"_npmUser":{"name":"gajus","email":"gajus@gajus.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gitinfo_2.4.0_1563036792515_0.2966333061058215"},"_hasShrinkwrap":false,"readme":"# gitinfo\n\n[![Travis build status](http://img.shields.io/travis/gajus/gitinfo/master.svg?style=flat-square)](https://travis-ci.org/gajus/gitinfo)\n[![NPM version](http://img.shields.io/npm/v/gitinfo.svg?style=flat-square)](https://www.npmjs.org/package/gitinfo)\n[![Canonical Code Style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical)\n\nGets information about Git repository.\n\n## Implementation\n\ngitinfo reads the contents of the `./git` directory to extract information.\n\n## API\n\n```js\nimport createGitinfo from 'gitinfo';\n\n/**\n * @typedef Configuration\n * @property {string} [defaultBranchName] Default branch name to fallback to. Default: throws an error if branch cannot be resolved.\n * @property {string} [gitPath] Path used to resolve .git path. Defaults to `__dirname`.\n */\n\n/**\n * @access public\n * @name createGitinfo\n * @param {Configuration} userConfig\n */\nconst gitinfo = createGitinfo();\n\n/**\n * Returns **Any** GitHub repository URL.\n */\ngitinfo.getGithubUrl();\n\n/**\n * Returns **Any** Name of the current branch.\n */\ngitinfo.getBranchName();\n\n/**\n * Returns **Any** Remote URL of the current branch.\n */\ngitinfo.getRemoteUrl();\n\n/**\n * Returns **Any** Absolute path to the .git/ directory.\n */\ngitinfo.getGitPath();\n\n/**\n * Returns **Any** Username of the repository author.\n */\ngitinfo.getUsername();\n\n/**\n * Returns **Any** Repository name.\n */\ngitinfo.getName();\n\n/**\n * Returns **Any** Commit SHA of the current branch.\n */\ngitinfo.getHeadSha();\n\n/**\n * Returns **Any** Representation of the .git/config file.\n */\ngitinfo.getConfig();\n\n```\n\n## Download\n\nDownload using NPM:\n\n```sh\nnpm install gitinfo\n\n```\n","publish_time":1563036792648,"_cnpm_publish_time":1563036792648,"dist-tags":{"latest":"2.4.0"}}