Skip to content

chrisdickinson/git-object-blob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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(...))

b = blob.read(<some git buffer>)

API

blob.read() -> 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.

About

parse and create git blob objects

Resources

Stars

Watchers

Forks

Packages

No packages published