git-write-pkt-line
write git packet lines (for smart remote protocol)
Last updated 12 years ago by chrisdickinson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (12 years ago)

5 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |