Socket
Book a DemoInstallSign in
Socket

git-write-pkt-line

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-write-pkt-line

write git packet lines (for smart remote protocol)

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

git

FAQs

Package last updated on 14 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts