node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »



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(...))
=<some git buffer>)

API -> Blob

read a blob from some git buffer data.

blob.create() -> Blob

create a blob from some source data.

Blob#data -> Buffer

original blob contents as a Buffer object.

Blob#size -> number

size of the blob in bytes.