git-object-blob

parse and create git blob objects

git-object-blob

git blob objects as javascript objects.

probably the most simple.

var Buffer = require('buffer').Buffer
  , blob = require('git-object-blob')
 
var b = blob.create(new Buffer(...))
 
= blob.read(<some git buffer>)
 

read a blob from some git buffer data.

create a blob from some source data.

original blob contents as a Buffer object.

size of the blob in bytes.