{"_id":"git-state","_rev":"28-8fa6bc43a44703b0bb17fae2212bc045","name":"git-state","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"name":"git-state","version":"1.0.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@1.0.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"cac31708dd1ca2d97ce436d4c77c52add031e7d9","tarball":"https://registry.npmjs.org/git-state/-/git-state-1.0.0.tgz","integrity":"sha512-33AZpy9KISz6krOsQuTuFuQTu9nSQd34DoMvC6ieru7lmcPtuLqLZmBf/Sa5s/sC6OzgVRWJdM8Pxy8fr8pgLg==","signatures":[{"sig":"MEYCIQChMkVqn6WKgqXpmEWrhSgL3U62jQETuJZhcY75Shbi9wIhAOrFnsxlq/NqB8qO8eI+0m1ORkmq8ioS71j3VRka30wH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cac31708dd1ca2d97ce436d4c77c52add031e7d9","gitHead":"0115c3a173559b1e6597e93bbb862aa3271faa53","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"1.0.1":{"name":"git-state","version":"1.0.1","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@1.0.1","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"792e156aae771c418af8ec4c57fcae82eaae1bb9","tarball":"https://registry.npmjs.org/git-state/-/git-state-1.0.1.tgz","integrity":"sha512-Sj1YOSzGWZsbZQZdNUeMLF+KATOpnBN18TiSRWt9XirHgPaPyoONnoj0kMTSDWF9N5mYz0UTJxx3m/Bu664yoQ==","signatures":[{"sig":"MEQCIAGT7n+vrAWrqhi+228EVS62EVq4Ke28uryn4IhlmcmRAiAkcuWtlh1dyMFETQCTP22KbGIQ0vi52/mskISaZYXj9Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"792e156aae771c418af8ec4c57fcae82eaae1bb9","gitHead":"948defc918caef9d66323afede760aaaddb02bd4","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.0.0":{"name":"git-state","version":"2.0.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.0.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"5858452bbd9eff31a59b810ece106f8dc285b7d6","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.0.0.tgz","integrity":"sha512-P6tVebis5XvTZu4TfbjNV6YrQ/7t5ycBjd22bE+Yso1B91I6K5DiBKa8Ibr/ydrf65tAMKkNa8AbIKS3yKeOpg==","signatures":[{"sig":"MEQCICgkZxWaU0SzzVeU/3TEZVg/MNlB34tTHhrxH7oFnCbeAiBLLglLtvlXpB/Vgn2SdHMyfyfJi+GdbmfcXvm49lf1bg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5858452bbd9eff31a59b810ece106f8dc285b7d6","gitHead":"ad57fead0b5edeae767d73ece8c941d69e4faf17","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.1.0":{"name":"git-state","version":"2.1.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.1.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"ba97cc7122e7d479f5bf13049c410a6644875959","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.1.0.tgz","integrity":"sha512-2RsLwccMHRK0Xj9519+g04n5Nevn4KNe+LM4aVNuXiTzNRsAib5k6lZjZe3zqWSYJAmedNiHyNoHbS57wNimcA==","signatures":[{"sig":"MEUCIQDEMoPShOfshd8f4s8B03T5mWvN2dqRjMD+Ve8aZUiybQIgC3lMaP2PltHgFmz4sUR7kvmX/JRukhOy1y2JytEbICA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ba97cc7122e7d479f5bf13049c410a6644875959","gitHead":"8e06997fe41be437cb2c77faf8c4335c834d7ad1","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.2.0":{"name":"git-state","version":"2.2.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.2.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"05a9817797854c59333a22b4b6b08cab4ede0ce4","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.2.0.tgz","integrity":"sha512-9FYa90kG7C6+zq2lQ8g8Ie71ymWEHN7D3rqoVJvt8Ewhf4AI+41lPQ2XlAXrRnR2sWy+nfB5ladd2W0wFBpSog==","signatures":[{"sig":"MEQCICV+EdWCTZrIg9SWo3RTsT2Bv+wmnHAKAYTJl68xeyl4AiBHp3/EWyg17tTYsbAdanx1TLnKmDvz89GgjWY66nE5yA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"05a9817797854c59333a22b4b6b08cab4ede0ce4","gitHead":"3c51d492b2b55fc11e1fb73c6d509e26a403fd54","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.2.1":{"name":"git-state","version":"2.2.1","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.2.1","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"12d1372397eec3b8bb950c1de04dd6c7bb948f81","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.2.1.tgz","integrity":"sha512-vZ3hWAyPjwYYv2yf20Opa60O9Hq1rpFDQeq0oHRpKs8hsj76AnrqbX0o3LFlQ6N9PgN9o76oO5JFjsxPagadDA==","signatures":[{"sig":"MEUCIE/2lzaolZt9DK/kgqbvPwRXleUs4/qmLtiCYBF68xolAiEA4VOyD8ov2ocmGTCMAocuc5sJappgneCuZN/SMEwFyiA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"12d1372397eec3b8bb950c1de04dd6c7bb948f81","gitHead":"f31f06e903df866ba9cfa27f2ab05690f7717414","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.2.2":{"name":"git-state","version":"2.2.2","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.2.2","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"b2bef71e2759031dedf6c7260358567982f23b34","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.2.2.tgz","integrity":"sha512-BqDTfWyq/cgFQA3eLBYReTSwnWqd3w0HWXv7cWBD/BCsu1iTvDnQAZ3hRncozGdkNr9GKKzuxHfhp+lt1cgGtw==","signatures":[{"sig":"MEYCIQCmhdR+nYq+be3KjiudoNnsVpEGN0mQF7/rlGZOOFFNUgIhAJS35Fe8kOCxxFNnk4sYtSoWAyqKpRg0CG01mtawhoWm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b2bef71e2759031dedf6c7260358567982f23b34","gitHead":"ea5a98d244ffe7906e3e877fd344c76d1f446b27","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.2.3":{"name":"git-state","version":"2.2.3","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.2.3","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"f4b6cc054284cc559ea6d3914a4f6d4cf89c4b63","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.2.3.tgz","integrity":"sha512-oJ/ipFPaWHwk1aETcWY5fiGpUXe67GvMq+Jp0YEQHN+qt9FoJsigOiful0vmjIFidORLTM22ErECm7/YFBLTkA==","signatures":[{"sig":"MEYCIQD5EfbYcEoQurAYsT2M+6l61qR7sUHsZ0uWiYHitKeG4gIhAKwbRDk68sdmGhdQkAp4o1ksdEUUy9wt862QAoSCid0g","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f4b6cc054284cc559ea6d3914a4f6d4cf89c4b63","gitHead":"c8731f31744b3b1673d1938ac98a7572539e49e0","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.2.4":{"name":"git-state","version":"2.2.4","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.2.4","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"c1fffb7b779c3c3ba21782ca3988d8d57ac7707d","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.2.4.tgz","integrity":"sha512-3a1zBvouQTkXyhzY3gI+ZRorc2FZf35eT/ytrzhTgbHSop1tSxCafpicX1jj8dp+Eqs0wF0BMpyItFSnPo0STQ==","signatures":[{"sig":"MEUCIB91k7X22N6udf25ySqLWEwZ1gO7wqjX7F1JyB5IUyYkAiEAmO532QxkvRPjl/rmMTEaDtUiUCZUdFY4hDIOxTVUNc0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"c1fffb7b779c3c3ba21782ca3988d8d57ac7707d","gitHead":"03bb81f130851170d90367c3ec72970e31429a5a","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.2.5":{"name":"git-state","version":"2.2.5","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.2.5","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"f7d21caddef98456f5b673ee18f996a7ed4634fc","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.2.5.tgz","integrity":"sha512-efvJECUvkkeROeIk+ppEwlgxgVM0R468zTpniiP8Knldqmjh/Xei9wSMg6/yIMmvW4jkLqvxQozqi7e2Tc6frg==","signatures":[{"sig":"MEYCIQCIAxOrhfBoHdiFI0tlgNz+0m1IGMMbIrVns7Z7TUY6YwIhAK4FLFDOro2S2CejkJbxWU42JT0L7+xsJaIsMaikGeh2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f7d21caddef98456f5b673ee18f996a7ed4634fc","gitHead":"6298ce7723999a923ade1f3110cac7ec69f5ab86","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[18.4785126,-69.954776],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.3.0":{"name":"git-state","version":"2.3.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.3.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"cc0b02dd853be1cc91c1a0e172e3ccb8982b3532","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.3.0.tgz","integrity":"sha512-QbwpfZMTBwfLfWFTrHk5k+lRkk6aaJd48pbe4nJoVoEPD2D/jwKAPzHfOra2NdPosH9kfBmP7/1U1+KAYQ6OEQ==","signatures":[{"sig":"MEUCIQCjzg5zXj00hfmIQRSazBOd/Ct/Ly6MkO+rIoFXgIRBHQIgISjqbxTH6sA06AVrO+CTYR3STQdt39oYxCaLQ76B1x0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cc0b02dd853be1cc91c1a0e172e3ccb8982b3532","gitHead":"c8c22787a158e5447c8e612a21815cc3e65e3f77","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"2.10.1","coordinates":[55.6804561,12.5735728],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"0.12.4","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.4.0":{"name":"git-state","version":"2.4.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.4.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"c439c2d6e6fafa256754621b6e24ad9ab12b6104","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.4.0.tgz","integrity":"sha512-uMMhHToL7qlfSzVyjybCLTtXlG/EoaRxjqhVTsf9/6qI7OsVa/tYQIdmMmkYFScOIniJpjE33QXlW10f+cxgiw==","signatures":[{"sig":"MEUCIQDJih49DPo1CjAGlDbPSwoIsXKUUKz+o8ga1PMZpnSUdAIgKFDI3oyNR388OVJpZkhBjx6CQ74x6SKCdm6s9JsNQT8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"c439c2d6e6fafa256754621b6e24ad9ab12b6104","gitHead":"41bc067cdef55874ea4da13ef8ae39b33e054572","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"2.12.0","coordinates":[56.1460465,10.202726],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"0.10.38","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.5.0":{"name":"git-state","version":"2.5.0","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.5.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"64f04e608793b439d5d318977e4d9afc01ae25ad","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.5.0.tgz","integrity":"sha512-Tx9jE7wTCmeaPp3yOLEG3l+Vl88mwbOAPG68zYuv56+mIYGOrdU3YI0JlB1524VB7n0hRYi3rEkm3zmCJgJpiw==","signatures":[{"sig":"MEYCIQDXZxuj+wRo7YuQxQbvELEdtmdTqK+4lfn5baYpOEePOwIhAIQNH3frHhZ1mLX7KuU9zxf6UjuLR0Ng/DkyWcTisnrM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"64f04e608793b439d5d318977e4d9afc01ae25ad","gitHead":"abb2d8805099d67ed4015bff92524d835e9b1ae6","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"1.4.28","coordinates":[55.66656880000001,12.580034],"description":"Get the current state of any git repository","directories":{},"dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.0.0","standard":"^4.3.1"}},"2.5.1":{"name":"git-state","version":"2.5.1","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.5.1","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"8ac3b55c6096d7492b3b8b39db55adb42d73e76a","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.5.1.tgz","integrity":"sha512-rpmvS9TuWL/TNWoQGYfOtmOfUJZ26Ouihb3RBwUH9xL14HsX1CrJUqYcEL+VnmcSpFFg6lRXGJv7uO3ziT/ZFw==","signatures":[{"sig":"MEUCIELbfxt13ZPi0G7GDkYZ4su+L4IDHfRMm6fPUTMtwY74AiEAgptG6G9/H84uxKSEg9wqc2gIi6U88+ZEIwOhqNZXyto=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8ac3b55c6096d7492b3b8b39db55adb42d73e76a","gitHead":"a6e2fd7641e6ffc200d1f9e4c31ac685c2b016a3","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"2.14.7","coordinates":[55.68842129999999,12.5618919],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"4.2.2","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","standard":"^5.4.1"}},"2.5.2":{"name":"git-state","version":"2.5.2","keywords":["git","status","state","issues","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@2.5.2","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"2825424ac8f3bb2f02b37461559d2dafe1bda04a","tarball":"https://registry.npmjs.org/git-state/-/git-state-2.5.2.tgz","integrity":"sha512-Iq3zs2/Bg6dOMCBaE7GEbZKb+XV/hEFJSMNs83dhrLcuerEwPCA35/V3lK9GEAZDgpfmwqOTsvjL8c9khzyq+A==","signatures":[{"sig":"MEQCIFrAJgmvKnpZIMz3RYjGlLDtjdYA9qQdn6XpJgNCzhKLAiAVIFYLyCT7EXEcws8FPa8o+RPqB5P5/KUEpdkoKrIR3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2825424ac8f3bb2f02b37461559d2dafe1bda04a","gitHead":"a8db5e8850ac267be6063dde49f7cd26a2ddc9f6","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"2.15.9","coordinates":[41.3264171,-72.9187589],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"4.5.0","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","standard":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/git-state-2.5.2.tgz_1474834138220_0.23531559063121676","host":"packages-16-east.internal.npmjs.com"}},"3.0.0":{"name":"git-state","version":"3.0.0","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@3.0.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"41b1e2a8d1d52fcb9b57e6dade04266b9d4c6732","tarball":"https://registry.npmjs.org/git-state/-/git-state-3.0.0.tgz","integrity":"sha512-z+6CxYJSK7wdhtK2f1yx5WhxSaR04qKBZ5c+T6rmVnhdDv011HBSJkjsDj4IjzQW7jVznsLZp534NoG1IsTmaw==","signatures":[{"sig":"MEYCIQC9pPI0JTU+35mJiiRL72bru2Kt8AZYdiNb1pjHVxhuwAIhAL6t4VBTXlSHY5aW44Avx9yevIQoQlr4TNhiRiAZE31M","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"41b1e2a8d1d52fcb9b57e6dade04266b9d4c6732","gitHead":"3ac840d21f2e13fff005b4fe04e112ef77176c53","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"2.15.9","coordinates":[41.325876577998876,-72.91857503652341],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"4.5.0","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","standard":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/git-state-3.0.0.tgz_1474835735798_0.851141918450594","host":"packages-16-east.internal.npmjs.com"}},"3.0.1":{"name":"git-state","version":"3.0.1","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@3.0.1","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"b44949cece52fbaf374a98515086ca7044d62391","tarball":"https://registry.npmjs.org/git-state/-/git-state-3.0.1.tgz","integrity":"sha512-HTtSaA4Ss6yeTnGK5sX3W4ix8FfjyI1dYrP8hz0KTf5j1gxbuXbekc+qsjVSPIC46qoZyEAEu/8rZfVbAMAuaA==","signatures":[{"sig":"MEUCIQDKO9FAst+pSc9hN6C5/BIAim5gRlifDt/dBRGzrEd6owIgfDib1y6nUSfhunUu30GYN8AXwc5u4i34vnGXyux9C4o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b44949cece52fbaf374a98515086ca7044d62391","gitHead":"5fb312ea98155c25f741bb97210770a47cbebc17","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"2.15.9","coordinates":[41.326307448570525,-72.91861258312986],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"4.5.0","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","standard":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/git-state-3.0.1.tgz_1474837921859_0.25803275941871107","host":"packages-12-west.internal.npmjs.com"}},"3.1.0":{"name":"git-state","version":"3.1.0","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@3.1.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"89a8b60b98ffc94028a921f49c0da8e5869b1316","tarball":"https://registry.npmjs.org/git-state/-/git-state-3.1.0.tgz","integrity":"sha512-SSQDdI/OiXh69GvwhZ1knU50q2W8hsWWyfykQwtl+U0UDO7EouMgngBf9IYGo8mTE+VrdBSjGVY4xVkMHlw9tA==","signatures":[{"sig":"MEYCIQDMVSoQ2P9Qwezcdhz4oMDLoCMzj2bWsZXicSzbvHwGDwIhAOnQbS38kaXvR2ZKuskpVHRKkl8BNKnDEoSw2E2gN6Wk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"89a8b60b98ffc94028a921f49c0da8e5869b1316","gitHead":"851e794899f3c51b79a038d52d466c1f67a91c77","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"3.10.8","coordinates":[55.77757634510489,12.589977196295195],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"6.9.1","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","semver":"^5.3.0","standard":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/git-state-3.1.0.tgz_1479754990738_0.6145773222669959","host":"packages-18-east.internal.npmjs.com"}},"3.1.1":{"name":"git-state","version":"3.1.1","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@3.1.1","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"15e8a2785a469c62a0bc5b2037a9ce9eb2985546","tarball":"https://registry.npmjs.org/git-state/-/git-state-3.1.1.tgz","integrity":"sha512-n1/lcaOhwtEHW2/MlPkzHE2fDlIxE2Z8jkq/kwV6VUTZ8e2yHkl+lHdCFez4K6zQ25TfkSIJCXxVDm58acDTFQ==","signatures":[{"sig":"MEUCIAcH888Kc9uMThqO3h2xoirPXHaaE1Ks1q6Yr68ycGGMAiEAw0DkOSkU+VX6wvXfhUTXJ6jbt1v6n2lvnIXzqGAXBEQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"15e8a2785a469c62a0bc5b2037a9ce9eb2985546","gitHead":"60400ee9985e97725d2711494bc718b8f90452ae","scripts":{"test":"standard && tape test.js"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"4.2.0","coordinates":[55.77756074967197,12.59000664536893],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"6.9.1","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","semver":"^5.3.0","standard":"^5.4.1"},"_npmOperationalInternal":{"tmp":"tmp/git-state-3.1.1.tgz_1490172157828_0.008690165588632226","host":"packages-18-east.internal.npmjs.com"}},"4.0.0":{"name":"git-state","version":"4.0.0","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@4.0.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"c6f55127e81a2d9feb405a6ad4f76f97fbb68104","tarball":"https://registry.npmjs.org/git-state/-/git-state-4.0.0.tgz","integrity":"sha512-7rW22+ryQP6az93gU2jr+4SVAAoEPLELTwQiZd1ldq+77N+KLinP1FyZ61bkWrbXiZcEc9F9mpam2r30yG68Tw==","signatures":[{"sig":"MEUCIQC335RuPuPQql9bqfVBQ2aBviH4AagGq9w9IUuwXT4CyAIgSHt0fjwQ1eS4jJ8BiRmaLFakh9Ry2X0MqpIMBjinnv8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","engines":{"node":">=4.0.0"},"gitHead":"57ea596035dea501060294e1249f7d18f9cbb1f4","scripts":{"test":"standard && tape test.js","pretest":"touch dummy.file","posttest":"rm dummy.file"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"5.0.3","coordinates":[56.00999471221678,11.96192500794757],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"8.1.2","dependencies":{"after-all-results":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","standard":"^10.0.2"},"_npmOperationalInternal":{"tmp":"tmp/git-state-4.0.0.tgz_1498754936585_0.4901927742175758","host":"s3://npm-registry-packages"}},"4.1.0":{"name":"git-state","version":"4.1.0","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","_id":"git-state@4.1.0","maintainers":[{"name":"watson","email":"w@tson.dk"}],"homepage":"https://github.com/watson/git-state","bugs":{"url":"https://github.com/watson/git-state/issues"},"dist":{"shasum":"23c3a34b99b87ddb34527c741711498b92fb8e0a","tarball":"https://registry.npmjs.org/git-state/-/git-state-4.1.0.tgz","fileCount":15,"integrity":"sha512-IZ1BCOr33BJNyoDMli9UTetLzYPDv26SQwvicybA7W6ojFtXiPmN39Vb0eEUAkiAFt4P2L64dj5LEHAxjVh9XA==","signatures":[{"sig":"MEUCIQD9CSDW4/xpAP4lrtanFgzWomWoyDPqOPZD8JHah9KSDwIgUb8wM/ezObi8bwfre0aUfbRkng6+p/Ps7wTqlkAApZ4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdD+kCRA9TVsSAnZWagAAkK8P/RUTWis81T1va0Eeq0Ou\nPFI/ZVi1GG+izpsMMwy4+lvr5t9gBlb+6eHrSgW+JTD9RAm6DLB8cjdDqbO7\nKiogCiL1I/K9jZJr2XTbqMpPYMxI2F4lcYgciGvTv9ABl0Y6S6h9AHa0nbEq\npHBB2yBbTj80yjmVWYEykj26CudvX4KTk9SnCoQLjSY9Ui3IMbZWaWhWjHuW\nYricROrUS8XpVDSXSEWLQaxgUasV4cL4haOQg6B1WFVzm4WWtm7k2C0jvZJY\ng3TBL9K6o3gcXXFpJLcCDzs2wyBG2vHJRrvukW+/TuIczPrCQGBLoKQu0jwT\njXV658Yg9cOW/nmMxnciF0pa69UGAQbN4LCyaJ1Z9409R269rY3rRMYlE32P\n335lnlRInrRgy40KOT1eG3ZQYwFru3iBklCmL3paD6Ct+yucI9OcPdQMZ1Gu\nFffjWOBUsQIkfP06DUYKlxr5+GBOu5UFjR3WnIYIgqCPsKTUtHHdiopd7cVB\nAhEPQ91rMl8IwnPEaNDznkK+tnCqpjMBx23tItKuJkq1qg0lpJDDSmeuRzyg\nUzN1rBHeetXkkRi8nUZ1on0bVQgnwe9G0rbhe1tQxlFGT6pKulqCE+WCtnhX\nFENmkcxllDs11iiXdWmHXZ7fmIdvs82a0h/ucVe1IC3+DB1SJMJxk3VQkcYB\nYZJE\r\n=YiXH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=4.0.0"},"gitHead":"f857f0707b53915fdee128ed10220ac8d0d07f88","scripts":{"test":"standard && tape test.js","pretest":"touch dummy.file","posttest":"rm dummy.file"},"_npmUser":{"name":"watson","email":"w@tson.dk"},"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"_npmVersion":"6.2.0","coordinates":[55.777897,12.592192],"description":"Get the current state of any git repository","directories":{},"_nodeVersion":"10.8.0","dependencies":{"after-all-results":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.4.0","standard":"^10.0.2"},"_npmOperationalInternal":{"tmp":"tmp/git-state_4.1.0_1534345124930_0.16057901181578393","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-06-21T02:38:39.031Z","modified":"2024-10-22T17:26:52.002Z","1.0.0":"2015-06-21T02:38:39.031Z","1.0.1":"2015-06-21T03:05:14.591Z","2.0.0":"2015-06-21T15:55:52.757Z","2.1.0":"2015-06-22T16:00:59.644Z","2.2.0":"2015-06-22T19:06:08.628Z","2.2.1":"2015-06-22T19:43:18.360Z","2.2.2":"2015-06-22T20:06:31.987Z","2.2.3":"2015-06-22T20:10:29.432Z","2.2.4":"2015-06-23T18:53:46.424Z","2.2.5":"2015-06-23T19:17:07.638Z","2.3.0":"2015-08-11T19:44:33.977Z","2.4.0":"2015-08-12T11:27:03.204Z","2.5.0":"2015-09-29T18:26:44.587Z","2.5.1":"2016-01-12T21:30:15.577Z","2.5.2":"2016-09-25T20:08:59.488Z","3.0.0":"2016-09-25T20:35:37.091Z","3.0.1":"2016-09-25T21:12:03.445Z","3.1.0":"2016-11-21T19:03:11.324Z","3.1.1":"2017-03-22T08:42:38.881Z","4.0.0":"2017-06-29T16:48:57.639Z","4.1.0":"2018-08-15T14:58:44.984Z"},"bugs":{"url":"https://github.com/watson/git-state/issues"},"author":{"url":"https://twitter.com/wa7son","name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","homepage":"https://github.com/watson/git-state","keywords":["git","status","state","branch","repo","repository","ahead","dirty","untracked"],"repository":{"url":"git+https://github.com/watson/git-state.git","type":"git"},"description":"Get the current state of any git repository","maintainers":[{"name":"watson","email":"w@tson.dk"}],"readme":"# git-state\n\nGet the current state of any git repository.\n\n[![npm](https://img.shields.io/npm/v/git-state.svg)](https://www.npmjs.com/package/git-state)\n[![Build status](https://travis-ci.org/watson/git-state.svg?branch=master)](https://travis-ci.org/watson/git-state)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n## Installation\n\n```\nnpm install git-state --save\n```\n\n## Usage\n\n```js\nvar git = require('git-state')\n\nvar path = '/path/to/git/repo'\n\ngit.isGit(path, function (exists) {\n  if (!exists) return\n\n  git.check(path, function (err, result) {\n    if (err) throw err\n    console.log(result) // => { branch: 'master',\n                        //      ahead: 0,\n                        //      dirty: 9,\n                        //      untracked: 1,\n                        //      stashes: 0 }\n  })\n})\n```\n\n## API\n\n#### `isGit(path, callback)`\n\nCalls the `callback` with a boolean which is either `true` or `false`\ndepending on if the given path contains a git repository.\n\n#### `isGitSync(path)`\n\nSynchronous version of `isGit()` which returns either `true` or `false`\ndepending on if the given path contains a git repository.\n\n#### `check(path[, options], callback)`\n\nWill check the state of the git repository at the given `path` and call\nthe `callback`. The `callback` will be called with two arguments: An\noptional error object and a result object.\n\nThe result object contains the following properties:\n\n- `branch` - The currently checked out branch\n- `ahead` - The amount of commits the current branch is ahead of the\n  remote (may be `NaN` if there for instance is no remote)\n- `dirty` - The number of dirty files\n- `untracked` - The number of untracked files\n- `stashes` - The number of stored stashes\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `checkSync(path[, options])`\n\nSynchronous version of `check()`.\n\nCan throw error. This typically happens if you are running a too old\nversion of Node.js (< 0.12), if git isn't found or if the path isn't\na git repository.\n\n#### `untracked(path[, options], callback)`\n\nGet the amount of untracked files in the git repository at the given\n`path`.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a number representing the amount of untracked files.\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `untrackedSync(path[, options])`\n\nSynchronous version of `untracked()`.\n\nCan throw error. This typically happens if you are running a too old\nversion of Node.js (< 0.12), if git isn't found or if the path isn't\na git repository.\n\n#### `dirty(path[, options], callback)`\n\nGet the amount of dirty files in the git repository at the given\n`path`.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a number representing the amount of dirty files.\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `dirtySync(path[, options])`\n\nSynchronous version of `dirty() `.\n\nCan throw error. This typically happens if you are running a too old\nversion of Node.js (< 0.12), if git isn't found or if the path isn't\na git repository.\n\n#### `branch(path[, options], callback)`\n\nGet the currently checked out branch in the git repository at the given\n`path`.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a string with the branch name.\n\nIf the branch name cannot be found, a falsy value will be returned.\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `branchSync(path[, options])`\n\nSynchronous version of `branch()`. Returns null if no branch is set.\n\n#### `ahead(path[, options], callback)`\n\nGet the amount of commits the current branch in the git repository at\nthe given `path` is ahead of its remote.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a number indicating the amount of commits the branch is ahead\nof its remote.\n\nIf the number cannot be determined, `NaN` will be returned instead.\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `aheadSync(path[, options])`\n\nSynchronous version of `ahead()`.\n\nIf the number cannot be determined, `NaN` will be returned instead.\n\n#### `commit(path[, options], callback)`\n\nGet the short-hash (e.g. `7b0a3ab`) for the latest commit at `HEAD` in\nthe git repository at the given `path`.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a string containing the short-hash.\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `commitSync(path[, options])`\n\nSynchronous version of `commit()`.\n\nCan throw error. This typically happens if you are running a too old\nversion of Node.js (< 0.12), if git isn't found or if the path isn't\na git repository.\n\n#### `stashes(path[, options], callback)`\n\nGet the amount of stashed changes in the git repository at the given\n`path`.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a number representing the amount of stashed changes.\n\nSupports the following `options`:\n\n- `maxBuffer` - largest amount of data (in bytes) allowed on stdout or\n  stderr - if exceeded child process is killed (default: `200*1024`)\n\n#### `stashesSync(path[, options])`\n\nSynchronous version of `stashes()`.\n\nCan throw error. This typically happens if you are running a too old\nversion of Node.js (< 0.12), if git isn't found or if the path isn't\na git repository.\n\n#### `message(path[, options], callback)`\n\nGet the commit message of the latest commit.\n\nThe `callback` will be called with two arguments: An optional error\nobject and a string containing the commit message.\n\n#### `messageSync(path[, options])`\n\nSynchronous version of `message()`.\n\nCan throw error. This typically happens if you are running a too old\nversion of Node.js (< 0.12), if git isn't found or if the path isn't\na git repository.\n\n## Shell implementation\n\nInside the [`bin`](https://github.com/watson/git-state/tree/master/bin)\nfolder is a set of shell scripts which will perform the same checks as\nthe `isGit()` and `check()` functions, but just in pure bash. This\nallows you for instance to modify your command prompt without having to\ninvoke node (which can be kind of slow if done at every request). In\nfact this is exactly what the\n[git-ps1](https://github.com/watson/git-ps1) module does for you.\n\n- `bin/isgit` - exit code will be 0 if cwd is inside a git repo,\n  otherwise 1\n- `bin/ahead` - exit code will be 0 if result is `0`, otherwise 1\n- `bin/branch` - exit code will be 0 if result is `master`, otherwise 1\n- `bin/dirty` - exit code will be 0 if result is `0`, otherwise 1\n- `bin/untracked` - exit code will be 0 if result is `0`, otherwise 1\n- `bin/stashes` - exit code will be 0 if result is `0`, otherwise 1\n- `bin/commit` - exit code will be 0 if a commit can be found, otherwise 1\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","users":{"kwesi":true,"rocket0191":true}}