Socket
Book a DemoInstallSign in
Socket

git-object-blob

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-object-blob

parse and create git blob objects

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

git

FAQs

Package last updated on 18 Jun 2016

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