{"_id":"is-git-repository","_rev":"1329465","name":"is-git-repository","description":"A tool to check if a specific path is a git repository","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"time":{"modified":"2026-09-13T04:26:12.000Z","created":"2017-03-18T22:19:46.674Z","3.0.0":"2025-01-14T20:24:30.702Z","2.0.0":"2020-07-23T18:39:53.730Z","1.1.1":"2017-05-06T17:08:26.285Z","1.1.0":"2017-05-04T21:09:10.708Z","1.0.1":"2017-03-23T17:10:49.556Z","1.0.0":"2017-03-18T22:19:46.674Z"},"users":{"rocket0191":true},"author":{"name":"Jan Peer Stöcklmair"},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"versions":{"3.0.0":{"name":"is-git-repository","version":"3.0.0","description":"A tool to check if a specific path is a git repository","type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"scripts":{"test":"vitest run . --coverage --coverage.reporter lcov","lint":"eslint index.js index.spec.js","prettier:check":"prettier --check .","prettier:format":"prettier --write .","coveralls":"cat ./coverage/lcov.info | coveralls"},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"keywords":["is","git","repository","repo","is-git","exists"],"author":{"name":"Jan Peer Stöcklmair"},"license":"MIT","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","dependencies":{"execa":"^9.5.2"},"devDependencies":{"@eslint/js":"^9.18.0","@vitest/coverage-v8":"^2.1.8","coveralls":"^3.1.1","eslint":"^9.18.0","eslint-config-prettier":"^10.0.1","prettier":"^3.4.2","vitest":"^2.1.8"},"_id":"is-git-repository@3.0.0","gitHead":"284ee8608515921587e68ca17f8e9e112d93dafd","types":"./index.d.ts","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-iCIObmkwkU6b15KB7rltAb60rIRXN4qAjVmBkqry8EWdwcJ9B7KUDCYrLIV2HOHENHYy9bm/MsDHDisoAZrpUg==","shasum":"75af9078e80f3a0ec2648c37ac8ec17ffcc01e9b","tarball":"http://registry-npm.ywwl.com/is-git-repository/download/is-git-repository-3.0.0.tgz","fileCount":9,"unpackedSize":5426,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZGmWxU86paOfbsaaIXlY/NhHRx1hat1iPUjyeE+CqMAIhAN0aSTwZ5+gsQ6ZcU37RPWdB1ZJ9PWXLfy7Z6wHBfr32"}],"size":2679,"noattachment":false,"key":"/is-git-repository/-/is-git-repository-3.0.0.tgz"},"_npmUser":{"name":"jpeer","email":"janpeer264@gmail.com"},"directories":{},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-git-repository_3.0.0_1736886270514_0.8547612347460214"},"_hasShrinkwrap":false,"publish_time":1736886270702,"_cnpm_publish_time":1736886270702},"2.0.0":{"name":"is-git-repository","version":"2.0.0","description":"A tool to check if a specific path is a git repository","main":"./dest/index.js","types":"./dest/index.d.ts","scripts":{"test":"jest","lint":"eslint index.ts test.spec.ts","coveralls":"cat ./coverage/lcov.info | coveralls","build":"rimraf dest && tsc && babel dest -d dest","prepublishOnly":"npm run build"},"husky":{"hooks":{"pre-push":"npm test","pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts}":["eslint --fix"]},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"keywords":["is","git","repository","repo","is-git","exists"],"author":{"name":"Jan Peer Stöcklmair"},"license":"MIT","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","dependencies":{"execa":"^4.0.3","is-absolute":"^1.0.0"},"devDependencies":{"@babel/cli":"^7.10.4","@types/is-absolute":"^1.0.0","@types/jest":"^26.0.4","@types/uuid":"^8.0.0","@typescript-eslint/eslint-plugin":"^3.6.0","@typescript-eslint/parser":"^3.6.0","babel-plugin-add-module-exports":"^1.0.2","coveralls":"^3.1.0","eslint":"^7.4.0","eslint-config-airbnb-base":"^14.2.0","eslint-plugin-import":"^2.22.0","husky":"^4.2.5","jest":"^26.1.0","lint-staged":"^10.2.11","rimraf":"^3.0.2","ts-jest":"^26.1.1","typescript":"^3.9.6"},"gitHead":"2dc323baf76a56783718f1a72f41c3aec354f88e","_id":"is-git-repository@2.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-HDO50CG5suIAcmqG4F1buqVXEZRPn+RaXIn9pFKq/947FBo2bCRwK7ZluEVZOy99a4IQyqsjbKEpAiOXCccOHQ==","shasum":"fa036007fe9697198c2c89dac4dd8304a6101e1c","tarball":"http://registry-npm.ywwl.com/is-git-repository/download/is-git-repository-2.0.0.tgz","fileCount":12,"unpackedSize":6890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGdl6CRA9TVsSAnZWagAAWCEP/19dtYaq45fRDNjZ8ZFD\nayc6++Ccf6mf8kl4ta5OGebzWIVwJ00EvgDBoK5wKtRPHiMOXObN2O0mWfiz\n6USTHjFDDG18Cdob2XRDYJItbWosdQYZWRuVVkKZouYacOj58/ypdc5PVsXi\nBgW6i/QVk6hi80lYOXBRCD/1SRZSxF/2KihbzTl5ofg9yOB9B+DkNMS6yuAg\nfAdTGqaDoIdW2un31ND/PJe1r+6xzNB5o5rLxwv6PbbToo56d8h1buevg4zG\nuzlweGFO5GXdQ8cc01lSbpCElDP6sOpASPpVAA+moGt+j4GfQ6b3//yxwZMa\nZ4q39W9hhQvBzWpDpEaYogxyLWH8GvXKzRRAnvShAcyQDS0gU6ZXfa7dtvrJ\nQjbLTqpYID7hTDTPI3dBPZKIilVOexQLymzRoLY5C3IeVAFf2g8XG81wWBCG\nm8ZJhE2iBL7fTTlfdK4mAeG/60RJNoFI/Wph0dpaTJT8uBFg5ibt+kR4Wx8F\nnmqqa9pxEPqT+84YBDvOn0cr3YDeteycyBvpOHyzMj4J52IDOQ1VkAyrrZoT\nQrXQgidvdo8rqzD8Id2KA+I7c/ntC3LDHES0Vm6v15upeaBZNwKW62ctkltE\nCAjd3prL1Qhaw3KhYwVLKAkFHGD2raaekuLmPZxntGJS5vmtq1rfjO1bwvtU\nubki\r\n=uDOI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrbwjsMxo78/u3SMF2QS+ZYXeP1XhebAW/qHkn/WOz/AiBkCSRoYLi/UA8Y/AkEcVbxXc6n6TzsD9+U1CvVt/iGzw=="}],"size":3398,"noattachment":false,"key":"/is-git-repository/-/is-git-repository-2.0.0.tgz"},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"_npmUser":{"name":"jpeer","email":"janpeer264@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-git-repository_2.0.0_1595529593625_0.23716686441595392"},"_hasShrinkwrap":false,"publish_time":1595529593730,"_cnpm_publish_time":1595529593730},"1.1.1":{"name":"is-git-repository","version":"1.1.1","description":"A tool to check if a specific path is a git repository","main":"build.js","scripts":{"pretest":"npm run lint","test":"nyc ava","lint":"eslint index.js","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublish":"npm run babel","babel":"babel index.js -o build.js","prepush":"npm test"},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"keywords":["is","git","repository","repo","is-git","exists"],"author":{"name":"Jan Peer Stöcklmair"},"license":"MIT","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"ava":{"require":"babel-register","babel":"inherit"},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","dependencies":{"execa":"^0.6.1","path-is-absolute":"^1.0.1"},"devDependencies":{"ava":"^0.18.2","babel-cli":"^6.24.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-env":"^1.2.2","coveralls":"^2.12.0","eslint":"^3.18.0","eslint-config-airbnb-base":"^11.1.1","eslint-plugin-import":"^2.2.0","husky":"^0.13.2","nyc":"^10.1.2"},"gitHead":"3d1e458c8038fa33ddad3d6afff56c96db5fdea4","_id":"is-git-repository@1.1.1","_shasum":"c68e4b7a806422349aaec488973a90558d7e9be0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jpeer","email":"janpeer264@gmail.com"},"dist":{"shasum":"c68e4b7a806422349aaec488973a90558d7e9be0","tarball":"http://registry-npm.ywwl.com/is-git-repository/download/is-git-repository-1.1.1.tgz","integrity":"sha512-hxLpJytJnIZ5Og5QsxSkzmb8Qx8rGau9bio1JN/QtXcGEFuSsQYau0IiqlsCwftsfVYjF1mOq6uLdmwNSspgpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICUJuPe080U2+Q6XFVFHhn6+h2SmO4Vud9FqyrHiznKjAiAhhGCFbN2hxMwgVMOHIuKhnKg77hB29yhTcQaHXj31tA=="}],"size":39156,"noattachment":false,"key":"/is-git-repository/-/is-git-repository-1.1.1.tgz"},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-git-repository-1.1.1.tgz_1494090504488_0.734004199039191"},"directories":{},"publish_time":1494090506285,"_cnpm_publish_time":1494090506285},"1.1.0":{"name":"is-git-repository","version":"1.1.0","description":"A tool to check if a specific path is a git repository","main":"build.js","scripts":{"pretest":"npm run lint","test":"nyc ava","lint":"eslint index.js","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublish":"npm run babel","babel":"babel index.js -o build.js","prepush":"npm test"},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"keywords":["is","git","repository","repo","is-git","exists"],"author":{"name":"Jan Peer Stöcklmair"},"license":"MIT","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"ava":{"require":"babel-register","babel":"inherit"},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","dependencies":{"execa":"^0.6.1","path-is-absolute":"^1.0.1"},"devDependencies":{"ava":"^0.18.2","babel-cli":"^6.24.0","babel-preset-env":"^1.2.2","coveralls":"^2.12.0","eslint":"^3.18.0","eslint-config-airbnb-base":"^11.1.1","eslint-plugin-import":"^2.2.0","husky":"^0.13.2","nyc":"^10.1.2"},"gitHead":"ede21c38f14c459ef9663a439f30bffd7e9bb251","_id":"is-git-repository@1.1.0","_shasum":"f0a81ac957223f7305bc23683dd9871e9c8b1bf6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jpeer","email":"janpeer264@gmail.com"},"dist":{"shasum":"f0a81ac957223f7305bc23683dd9871e9c8b1bf6","tarball":"http://registry-npm.ywwl.com/is-git-repository/download/is-git-repository-1.1.0.tgz","integrity":"sha512-IRl3i8E22LxsoKwYUWOx7wg0IDZ8SGIDCaoRgAqs9yleVcgoiOOFv8FEWbIV7GBvZ33JMl5hyufLl2MT5NOx/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH7oW90X80fqCfwoq7I9wEDrWqq2zOWB3MKR6IFOWZSGAiEAwTx3T8h3eOIcXvqiYCpokm6qk2e7LEcXshuwXGmmhlM="}],"size":39032,"noattachment":false,"key":"/is-git-repository/-/is-git-repository-1.1.0.tgz"},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-git-repository-1.1.0.tgz_1493932149103_0.7832550113089383"},"directories":{},"publish_time":1493932150708,"_cnpm_publish_time":1493932150708},"1.0.1":{"name":"is-git-repository","version":"1.0.1","description":"A tool to check if a specific path is a git repository","main":"build.js","scripts":{"pretest":"npm run lint","test":"nyc ava","lint":"eslint index.js","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublish":"npm run babel","babel":"babel index.js -o build.js","prepush":"npm test"},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"keywords":["is","git","repository","repo","is-git","exists"],"author":{"name":"Jan Peer Stöcklmair"},"license":"MIT","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"ava":{"require":"babel-register","babel":"inherit"},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","dependencies":{"execa":"^0.6.1"},"devDependencies":{"ava":"^0.18.2","babel-cli":"^6.24.0","babel-preset-env":"^1.2.2","coveralls":"^2.12.0","eslint":"^3.18.0","eslint-config-airbnb-base":"^11.1.1","eslint-plugin-import":"^2.2.0","husky":"^0.13.2","nyc":"^10.1.2"},"gitHead":"9b14fc39b3b285ed124a687f2bcecd57be58790c","_id":"is-git-repository@1.0.1","_shasum":"db80512b6ce8db3fa90c84292a7b525e427f5746","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jpeer","email":"janpeer264@gmail.com"},"dist":{"shasum":"db80512b6ce8db3fa90c84292a7b525e427f5746","tarball":"http://registry-npm.ywwl.com/is-git-repository/download/is-git-repository-1.0.1.tgz","integrity":"sha512-daxtJVi/joXOlStKq3d+I3Q0OXQ9umQ//Jo5vAsl7wTBl6eTU4CDT3RpP02GB0TeHwI4Oh8r8vBkpgfOD1IKCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu469hdhWCyb8e6srtncgmcuLBBjvyUFMFiiiHs5jcBwIhAPU/UwhmmvZfBqELlSvlj5JPYbHW8Ed91+TTjkJncwYk"}],"size":39437,"noattachment":false,"key":"/is-git-repository/-/is-git-repository-1.0.1.tgz"},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-git-repository-1.0.1.tgz_1490289047635_0.0521122720092535"},"directories":{},"publish_time":1490289049556,"_cnpm_publish_time":1490289049556},"1.0.0":{"name":"is-git-repository","version":"1.0.0","description":"A tool to check if a specific path is a git repository","main":"build.js","scripts":{"pretest":"npm run lint","test":"ava","lint":"eslint index.js","coveralls":"nyc report --reporter=text-lcov | coveralls","prepublish":"npm run babel","babel":"babel index.js -o build.js","prepush":"npm test"},"repository":{"type":"git","url":"git+https://github.com/JPeer264/node-is-git-repository.git"},"keywords":["is","git","repository","repo","is-git","exists"],"author":{"name":"Jan Peer Stöcklmair"},"license":"MIT","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"ava":{"require":"babel-register","babel":"inherit"},"nyc":{"exclude":["build.js"]},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","dependencies":{"execa":"^0.6.1"},"devDependencies":{"ava":"^0.18.2","babel-cli":"^6.24.0","babel-preset-env":"^1.2.2","coveralls":"^2.12.0","eslint":"^3.18.0","eslint-config-airbnb-base":"^11.1.1","eslint-plugin-import":"^2.2.0","husky":"^0.13.2","nyc":"^10.1.2"},"gitHead":"11d0930ecd75a15bf01ea8232d64047d8342f99b","_id":"is-git-repository@1.0.0","_shasum":"cdcfa0d4f0bc187e168d51dd1da3e0f21036b2c8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"jpeer","email":"janpeer264@gmail.com"},"dist":{"shasum":"cdcfa0d4f0bc187e168d51dd1da3e0f21036b2c8","tarball":"http://registry-npm.ywwl.com/is-git-repository/download/is-git-repository-1.0.0.tgz","integrity":"sha512-P9WIhi6xQ5p/EjmXoRAG0texA5sDuokIzX+riBMiDR8pqGRABTbNGKWe3ANcRbh43OdxWqhlCr3xdtwCklnrHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8ywHsK2u8bM5CndFDUAq2hFQzLffyswH+LWTDD3XzYAiEA0MGuvgw8/NxlWBVLsYAe7QXiStgnRVtMa9rX5kyM7Mc="}],"size":39089,"noattachment":false,"key":"/is-git-repository/-/is-git-repository-1.0.0.tgz"},"maintainers":[{"name":"jpeer","email":"janpeer264@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-git-repository-1.0.0.tgz_1489875584631_0.8083547605201602"},"directories":{},"publish_time":1489875586674,"_cnpm_publish_time":1489875586674}},"readme":"# is-git-repository\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/JPeer264/node-is-git-repository/ci.yml?branch=main)](https://github.com/JPeer264/node-is-git-repository/actions/workflows/ci.yml?query=branch%3Amain)\n[![Coverage Status](https://coveralls.io/repos/github/JPeer264/node-is-git-repository/badge.svg?branch=main)](https://coveralls.io/github/JPeer264/node-is-git-repository?branch=main)\n\nChecks synchronously if a specific directory is a git repository\n\n## Installation\n\n```sh\n$ npm i is-git-repository --save\n```\n\n## Usage\n\n```js\nimport isGit from \"is-git-repository\";\n\nisGit(); // true or false of process.cwd()\nisGit(\"any/git/repo\"); // true or false\n```\n\n## LICENSE\n\nMIT © [Jan Peer Stöcklmair](https://www.jpeer.at)\n","_attachments":{},"homepage":"https://github.com/JPeer264/node-is-git-repository#readme","bugs":{"url":"https://github.com/JPeer264/node-is-git-repository/issues"},"license":"MIT"}