{"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.3.0","gitHead":"a15c72f7beaf38b0a8af6a66315709583e4bfeac","bugs":{"url":"https://github.com/gajus/gitinfo/issues"},"homepage":"https://github.com/gajus/gitinfo#readme","_id":"gitinfo@2.3.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-raSKKcU2x0iWl2Cv3CrjR5mH18j5cNI5XyrnJWDUEc5pTPX2kM7UNGbwP3SYZHFyaBAwb9HzFQpzxxgfdrDHYg==","shasum":"9e8d68971481dd3446e84c3671068609e2cdd3e5","tarball":"http://registry-npm.ywwl.com/gitinfo/download/gitinfo-2.3.0.tgz","fileCount":6,"unpackedSize":10728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKMfdCRA9TVsSAnZWagAAuggP/A2fL7tio+6QaX6wVSfW\nfecnxD0eKU0V+tb4gsu9zqgoujJduTjW0cXfO4HJFIU9dQpnLwFLBwnUM2rk\nRa7laiKiZWKHSXJ5Csc+xOAx1hxxDYdToZmloFQzDBqrj2cTDK0MC7tNg4MM\nGPTJpUQEZYs9eZPfvKe4wMwixJhEtGv5yOswwEz+NFD/RH+pHzjfRrauCjlY\nWfXm6JiU9fgGxn1nQywF/FtKUpjjCZ4ap5ARQKehpUv4fZznrp1TyX3amVv6\nf/q5HboTiycgZKA/24c2gMQNHgruZ2KvaFHoNUjkB5TKZ8b3VuvPJm+hXsG1\nwiUwncjK7I5hOir4bvbKc0V1UEBCu6FGog+r0qFWsUZutgZ6P56TiGgmJQjN\nBhYk93WYpvJ2WFjWtCl+OQac2GfMaO3cnUS+ZEgBHh4riNZpkqzaZgWktkBS\nIRR67TpNEPGcH59QesjwvSAdgAlPkQChLtydVMAdCuFX0Swua5IGphmGCLsm\nKAorWUI55j+09FqHr7e3oQdjyGqrGyafaFax8NZePZi5i4WMJYfgbQ/3QHiG\n8BJek1Gh9WffYHfk9dAP5rEMbn+RO15+r9AsRWlL2POXGPgpVtIMWUXLiIWp\nrLmHftAd3YAREn306s7zyN5au5nB9QEnXEYYPHNmDppRPCLuaRqPHFltfYvy\nxXr1\r\n=WwJ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMxr9B+kqvKrv3yeqJM7pefrRuw1YivnNp8xFVfXhKGAiBwQrFO3XrS3aRGrImDxY85jU1sLH7R6/ZIH3AZQH76sQ=="}],"size":3784,"noattachment":false,"key":"/gitinfo/-/gitinfo-2.3.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.3.0_1562953692800_0.6955709208256649"},"_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":1562953692960,"_cnpm_publish_time":1562953692960,"dist-tags":{"latest":"2.4.0"}}