git-write-pkt-line

write git packet lines (for smart remote protocol)

MIT 5 个版本
安装
npm install git-write-pkt-line
yarn add git-write-pkt-line
pnpm add git-write-pkt-line
bun add git-write-pkt-line
README

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

版本列表
0.1.0 2014-05-14
0.0.4 2013-05-06
0.0.3 2013-05-04
0.0.2 2013-05-04
0.0.1 2013-03-21