package
a r/w stream that wraps a r/w stream and formats the data according to the git transfer protocol
npm install git-transport-protocolGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
wrap a r/w stream in this transport r/w stream for transforming writes into valid git packet lines, and reads from git packet lines into JS objects.
var net = require('net')
, transport = require('git-transport-protocol')
, client
, tcp
tcp = net.connect({host: 'github.com', port: 9418})
client = transport(tcp)
client.on('data', function(data) {
// data will be JS objects
})
// start a fetch
client.write('git-upload-pack /chrisdickinson/plate.git\0host=github.com\0')
wrap any readable/writable stream with git-packet-line senders and receivers.
enter or exit "raw" mode -- this makes writes skip the pkt-write portion of the stream and go directly to the connection.
this is useful for, e.g., sending packfile data.
MIT
Estimated unpacked size across 9 packages.
48.6 kB
Includes dependencies.
5 direct · 1 outdated
~1.0.0
1.0.0
~2.2.7
2.3.8
0.0.2
0.0.2
0.0.8
0.0.8
0.1.0
0.1.0