{"_id":"git-toplevel","_rev":"49018","name":"git-toplevel","description":"Method to find the top level git directory","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"time":{"modified":"2021-06-03T10:15:03.000Z","created":"2015-03-16T08:35:55.982Z","1.1.1":"2015-08-11T21:18:17.679Z","1.1.0":"2015-07-25T08:48:36.461Z","1.0.3":"2015-03-25T06:56:44.308Z","1.0.2":"2015-03-17T01:45:52.767Z","1.0.1":"2015-03-16T08:42:42.348Z","1.0.0":"2015-03-16T08:35:55.982Z"},"users":{},"author":{"name":"Roy Riojas","url":"http://royriojas.com"},"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"versions":{"1.1.1":{"name":"git-toplevel","version":"1.1.1","description":"Method to find the top level git directory","main":"index.js","scripts":{"beautify":"esbeautifier 'index.js' 'specs/**/*.js'","beautify-check":"esbeautifier -k 'index.js' 'specs/**/*.js'","eslint":"eslinter 'index.js' 'specs/**/*.js'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"watch-spawn -i -p 'specs/**/*.js' -p 'index.js' npm run cover","lint":"npm run beautify && npm run eslint && npm test","check":"npm run beautify-check && npm run eslint && npm test","changelog":"changelogx -f markdown -o ./changelog.md","do-changelog":"npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog' --no-verify","install-hooks":"prepush install && changelogx install-hook && precommit install","pre-v":"npm run check","post-v":"npm run do-changelog && git push --no-verify && git push --tags --no-verify","bump-major":"npm run pre-v && npm version major -m 'BLD: Release v%s' && npm run post-v","bump-minor":"npm run pre-v && npm version minor -m 'BLD: Release v%s' && npm run post-v","bump-patch":"npm run pre-v && npm version patch -m 'BLD: Release v%s' && npm run post-v"},"keywords":["git-toplevel","git root directory","git"],"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"precommit":["npm run check"],"prepush":["npm run check"],"dependencies":{"es6-promise":"^3.0.2","jq-trim":"^0.1.1"},"devDependencies":{"changelogx":"^1.0.16","esbeautifier":"^4.2.5","eslinter":"^2.3.0","istanbul":"^0.3.17","mocha-runner":"^1.0.8","precommit":"^1.1.3","prepush":"^3.1.2","proxyquire":"^1.6.0","read-file":"^0.2.0","watch-spawn":"^1.0.4"},"gitHead":"8b74aaf335ed6fefe15fd61ba4a44a161f0485a4","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"homepage":"https://github.com/royriojas/git-toplevel","_id":"git-toplevel@1.1.1","_shasum":"d3879c6ca6120c8cb180c52842094c0cc9eadaca","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"d3879c6ca6120c8cb180c52842094c0cc9eadaca","size":3347,"noattachment":false,"key":"/git-toplevel/-/git-toplevel-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-toplevel/download/git-toplevel-1.1.1.tgz"},"directories":{},"publish_time":1439327897679,"_cnpm_publish_time":1439327897679,"_hasShrinkwrap":false},"1.1.0":{"name":"git-toplevel","version":"1.1.0","description":"Method to find the top level git directory","main":"index.js","scripts":{"beautify":"esbeautifier 'index.js' 'specs/**/*.js'","beautify-check":"esbeautifier -k 'index.js' 'specs/**/*.js'","eslint":"eslinter 'index.js' 'specs/**/*.js'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"watch-spawn -i -p 'specs/**/*.js' -p 'index.js' npm run cover","lint":"npm run beautify && npm run eslint && npm test","check":"npm run beautify-check && npm run eslint && npm test","install-hooks":"changelogx install-hook && prepush install","bump":"bumpery --verify='npm run check'","changelog":"changelogx -f markdown -o ./changelog.md","do-changelog":"npm run changelog && git add ./changelog.md && git commit -m 'DOC: Generate changelog'"},"keywords":["git-toplevel","git root directory","git"],"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run check"],"dependencies":{"clix":"^1.0.5","es6-promise":"^2.3.0","jq-trim":"^0.1.0"},"devDependencies":{"bumpery":"^1.1.1","changelogx":"^1.0.15","esbeautifier":"^3.2.0","eslinter":"^2.0.6","istanbul":"^0.3.17","mocha-runner":"^1.0.8","prepush":"^2.0.4","proxyquire":"^1.6.0","read-file":"^0.2.0","watch-spawn":"^1.0.3"},"gitHead":"c6b853987d3c727eee096a3fa02c38d3a69e57ba","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"homepage":"https://github.com/royriojas/git-toplevel","_id":"git-toplevel@1.1.0","_shasum":"d6b0ab91073ca39b0a95927a459008428e12a747","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"d6b0ab91073ca39b0a95927a459008428e12a747","size":3221,"noattachment":false,"key":"/git-toplevel/-/git-toplevel-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-toplevel/download/git-toplevel-1.1.0.tgz"},"directories":{},"publish_time":1437814116461,"_cnpm_publish_time":1437814116461,"_hasShrinkwrap":false},"1.0.3":{"name":"git-toplevel","version":"1.0.3","description":"Method to find the top level git directory","main":"index.js","scripts":{"beautify":"esbeautifier index.js 'specs/**/*.js'","beautify-check":"esbeautifier -k index.js 'specs/**/*.js'","eslint":"eslinter index.js 'specs/**/*.js'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"npm run cover && watch-spawn -p 'specs/**/*.js' -p 'index.js'' npm run cover","lint":"npm run beautify && npm run eslint && npm test","check":"npm run beautify-check && npm run eslint && npm test","install-hooks":"changelogx install-hook && prepush install","bump":"bumpery --verify='npm run check'","changelog":"changelogx -f markdown -o ./changelog.md"},"keywords":["git-toplevel","git root directory","git"],"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run check"],"dependencies":{"clix":"^1.0.5","es6-promise":"^2.0.1","lodash.trim":"^3.0.1"},"devDependencies":{"bumpery":"^1.0.4","changelogx":"^1.0.11","esbeautifier":"^2.0.3","eslinter":"^1.0.0","istanbul":"^0.3.8","mocha-runner":"^1.0.5","prepush":"^2.0.3","proxyquire":"^1.4.0","read-file":"^0.1.2","watch-spawn":"^1.0.3"},"changelogx":{"issueIDRegExp":"#(\\d+)","commitURL":"https://github.com/royriojas/git-toplevel/commit/{0}","authorURL":"https://github.com/{0}","issueIDURL":"https://github.com/royriojas/git-toplevel/issues/{0}","projectName":"changelogx"},"gitHead":"e65503899de29fd8be1a4d2813df9e2a346a8ac8","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"homepage":"https://github.com/royriojas/git-toplevel","_id":"git-toplevel@1.0.3","_shasum":"992a1a6e98a151148d287330e9a4be6b6c3118cd","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"992a1a6e98a151148d287330e9a4be6b6c3118cd","size":8598,"noattachment":false,"key":"/git-toplevel/-/git-toplevel-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-toplevel/download/git-toplevel-1.0.3.tgz"},"directories":{},"publish_time":1427266604308,"_cnpm_publish_time":1427266604308,"_hasShrinkwrap":false},"1.0.2":{"name":"git-toplevel","version":"1.0.2","description":"Yet another changelog generator from git commits, based on conventions and with an optional hook to enforce the rules","main":"index.js","scripts":{"beautify":"esbeautifier index.js 'specs/**/*.js'","beautify-check":"esbeautifier -k index.js 'specs/**/*.js'","eslint":"eslint --format 'node_modules/eslint-friendly-formatter' index.js specs/ -c './configs/eslint.json'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"npm run cover && watch-spawn -p 'specs/**/*.js' -p 'index.js'' npm run cover","check":"npm run beautify && npm run eslint && npm test","prepush":"npm run beautify-check && npm run eslint && npm test"},"keywords":["git-toplevel","git root directory","git"],"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run prepush"],"dependencies":{"clix":"^1.0.5","es6-promise":"^2.0.1","lodash.trim":"^3.0.1"},"devDependencies":{"esbeautifier":"^2.0.1","eslint":"^0.17.0","eslint-friendly-formatter":"^1.0.3","istanbul":"^0.3.8","mocha-runner":"^1.0.5","prepush":"^1.0.3","proxyquire":"^1.4.0","read-file":"^0.1.2","watch-spawn":"^1.0.3"},"changelogx":{"issueIDRegExp":"#(\\d+)","commitURL":"https://github.com/royriojas/git-toplevel/commit/{0}","authorURL":"https://github.com/{0}","issueIDURL":"https://github.com/royriojas/git-toplevel/issues/{0}","projectName":"changelogx"},"gitHead":"97b8b268edc8cd8b877f15f88b8cc4f41e2f1afa","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"homepage":"https://github.com/royriojas/git-toplevel","_id":"git-toplevel@1.0.2","_shasum":"a0c44fed08bfc4f404d9ced300c44c91d5a714fe","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"a0c44fed08bfc4f404d9ced300c44c91d5a714fe","size":8376,"noattachment":false,"key":"/git-toplevel/-/git-toplevel-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-toplevel/download/git-toplevel-1.0.2.tgz"},"directories":{},"publish_time":1426556752767,"_cnpm_publish_time":1426556752767,"_hasShrinkwrap":false},"1.0.1":{"name":"git-toplevel","version":"1.0.1","description":"Yet another changelog generator from git commits, based on conventions and with an optional hook to enforce the rules","main":"index.js","scripts":{"beautify":"esbeautifier index.js 'specs/**/*.js'","beautify-check":"esbeautifier -k index.js 'specs/**/*.js'","eslint":"eslint --format 'node_modules/eslint-friendly-formatter' index.js specs/ -c './configs/eslint.json'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"npm run cover && watch-spawn -p 'specs/**/*.js' -p 'index.js'' npm run cover","check":"npm run beautify && npm run eslint && npm test","prepush":"npm run beautify-check && npm run eslint && npm test"},"keywords":["git-toplevel","git root directory","git"],"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run prepush"],"dependencies":{"clix":"^1.0.5","es6-promise":"^2.0.1","lodash.trim":"^3.0.1"},"devDependencies":{"esbeautifier":"^2.0.1","eslint":"^0.17.0","eslint-friendly-formatter":"^1.0.3","istanbul":"^0.3.8","mocha-runner":"^1.0.5","prepush":"^1.0.3","proxyquire":"^1.4.0","read-file":"^0.1.2","watch-spawn":"^1.0.3"},"gitHead":"c35e52d2d89f24e56e471c02ccafdf10284d994b","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"homepage":"https://github.com/royriojas/git-toplevel","_id":"git-toplevel@1.0.1","_shasum":"bd8092217a9350ad8465389b417a8b302286c22d","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"bd8092217a9350ad8465389b417a8b302286c22d","size":7874,"noattachment":false,"key":"/git-toplevel/-/git-toplevel-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-toplevel/download/git-toplevel-1.0.1.tgz"},"directories":{},"publish_time":1426495362348,"_cnpm_publish_time":1426495362348,"_hasShrinkwrap":false},"1.0.0":{"name":"git-toplevel","version":"1.0.0","description":"Yet another changelog generator from git commits, based on conventions and with an optional hook to enforce the rules","main":"index.js","scripts":{"beautify":"esbeautifier index.js 'specs/**/*.js'","beautify-check":"esbeautifier -k index.js 'specs/**/*.js'","eslint":"eslint --format 'node_modules/eslint-friendly-formatter' index.js specs/ -c './configs/eslint.json'","test":"mocha-runner 'specs/**/*.js'","cover":"istanbul cover -x 'specs/**/*.js' mocha-runner 'specs/**/*.js' html text-summary","watch":"npm run cover && watch-spawn -p 'specs/**/*.js' -p 'index.js'' npm run cover","check":"npm run beautify && npm run eslint && npm test","prepush":"npm run beautify-check && npm run eslint && npm test"},"keywords":["git-toplevel","git root directory","git"],"repository":{"type":"git","url":"https://github.com/royriojas/git-toplevel"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"prepush":["npm run prepush"],"dependencies":{"clix":"^1.0.5","es6-promise":"^2.0.1","lodash.trim":"^3.0.1"},"devDependencies":{"esbeautifier":"^2.0.1","eslint":"^0.17.0","eslint-friendly-formatter":"^1.0.3","istanbul":"^0.3.8","mocha-runner":"^1.0.5","prepush":"^1.0.3","proxyquire":"^1.4.0","read-file":"^0.1.2","watch-spawn":"^1.0.3"},"gitHead":"dcae11f89d09727bd3f300f2da3094a85ed49381","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"homepage":"https://github.com/royriojas/git-toplevel","_id":"git-toplevel@1.0.0","_shasum":"f7085111112635ee8e2313c0060119a0f220d877","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"f7085111112635ee8e2313c0060119a0f220d877","size":7713,"noattachment":false,"key":"/git-toplevel/-/git-toplevel-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-toplevel/download/git-toplevel-1.0.0.tgz"},"directories":{},"publish_time":1426494955982,"_cnpm_publish_time":1426494955982,"_hasShrinkwrap":false}},"readme":"[![NPM Version](http://img.shields.io/npm/v/git-toplevel.svg?style=flat)](https://npmjs.org/package/git-toplevel)\n[![Build Status](http://img.shields.io/travis/royriojas/git-toplevel.svg?style=flat)](https://travis-ci.org/royriojas/git-toplevel)\n\n# git-toplevel\n> Method to find the top level git directory\n\n## Install\n```bash\nnpm i --save git-toplevel\n```\n\n## Usage\n```javascript\nvar gitTopLevel = require('git-toplevel');\n\ngitTopLevel().then(function(dir) {\n  // dir ===> the git root \n}).catch(function(err) {\n  // err ===> any error that happen when trying to get the top level dir\n});\n```\n\n## Lincense\n\nMIT\n\n## [Changelog](./changelog.md)","_attachments":{},"homepage":"https://github.com/royriojas/git-toplevel","bugs":{"url":"https://github.com/royriojas/git-toplevel/issues"},"license":"MIT"}