git-write-pkt-line
write git packet lines (for smart remote protocol)
Last updated 13 years ago by chrisdickinson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install git-write-pkt-line 
SYNC missed versions from official npm registry.

git-write-pkt-line

Write git smart protocol packet lines.

var send = require('git-write-pkt-line')()

send.on('data', function(d) {
  console.log(d)
})

send.write('want 0000000000000000000000000000000000000000')

API

this module presents a through stream; when written to it adds the appropriate length header and newline ending. if an empty string or buffer is written, it will send a git "flush packet", which is just a size-0 packet.

License

MIT

Current Tags

  • 0.1.0                                ...           latest (13 years ago)

5 Versions

  • 0.1.0                                ...           13 years ago
  • 0.0.4                                ...           14 years ago
  • 0.0.3                                ...           14 years ago
  • 0.0.2                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 1
This Month 6
Last Day 0
Last Week 4
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE