{"_id":"git-packed-ref-parse","_rev":"5-19fd1b50a6e45c791edf1895b5caf188","name":"git-packed-ref-parse","description":"streaming git packed-ref parser","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"git-packed-ref-parse","version":"0.0.0","description":"streaming git packed-ref parser","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-packed-ref-parse.git"},"keywords":["git","packed-ref","parser","stream"],"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"license":"MIT","dependencies":{"line-stream":"0.0.0","through":"~2.2.7"},"devDependencies":{"tape":"~0.3.0"},"readme":"# git-packed-ref-parse\n\nparse packed-ref file streams into javascript objects.\n\n```javascript\n// after git gc in a git repo\nvar fs = require('fs')\n  , parse = require('git-packed-ref-parse')\n\nfs.createReadStream('.git/packed-refs')\n  .pipe(parse())\n  .on('data', console.log)\n\n``` \n\n## API\n\n#### parse() -> parse stream\n\ncreate a parse stream. when piped to, it will set\nthe encoding of the source stream to `utf8`.\n\n#### data event\n\nthe parse stream will emit data events for each\nref contained in the `packed-ref` file.\n\nthey take this form:\n\n```javascript\n{ \"hash\": \"40 character git hash\"\n, \"name\": \"ref name\"\n, \"commit\": null | \"40 character git hash\" }\n```\n\n`commit` will usually be `null`, except for annotated\n`tag` references.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_id":"git-packed-ref-parse@0.0.0","dist":{"shasum":"b85046931f3e4a65679b5de54af3a5d3df372646","tarball":"https://registry.npmjs.org/git-packed-ref-parse/-/git-packed-ref-parse-0.0.0.tgz","integrity":"sha512-wp+YhR4+qVSb8NXv2iFdmSPIh676Tqhuut7saS7CH0oEQA+PAT6Hx0bFvN2ej4PDxK+2aj4mVcvwjcH/sujxTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnuKpWVuoMVEQvEKAw9Paj8ltI1oi9umBPRAoXj1jgIAIhAIDsZdKdvY4f2HFrPWe3kdiM0Dhg+/AQOJLjOPPva9ZS"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"chrisdickinson","email":"chris@neversaw.us"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}]}},"readme":"# git-packed-ref-parse\n\nparse packed-ref file streams into javascript objects.\n\n```javascript\n// after git gc in a git repo\nvar fs = require('fs')\n  , parse = require('git-packed-ref-parse')\n\nfs.createReadStream('.git/packed-refs')\n  .pipe(parse())\n  .on('data', console.log)\n\n``` \n\n## API\n\n#### parse() -> parse stream\n\ncreate a parse stream. when piped to, it will set\nthe encoding of the source stream to `utf8`.\n\n#### data event\n\nthe parse stream will emit data events for each\nref contained in the `packed-ref` file.\n\nthey take this form:\n\n```javascript\n{ \"hash\": \"40 character git hash\"\n, \"name\": \"ref name\"\n, \"commit\": null | \"40 character git hash\" }\n```\n\n`commit` will usually be `null`, except for annotated\n`tag` references.\n\n## License\n\nMIT\n","maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"}],"time":{"modified":"2022-06-18T08:32:41.941Z","created":"2013-03-20T02:54:30.243Z","0.0.0":"2013-03-20T02:54:31.725Z"},"author":{"name":"Chris Dickinson","email":"chris@neversaw.us"},"repository":{"type":"git","url":"git://github.com/chrisdickinson/git-packed-ref-parse.git"}}