Socket
Book a DemoInstallSign in
Socket

rebuild-git

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rebuild-git

rebuild-git

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

rebuild-git

Bare friendly fork of isomorphic-git focused on git rebuild from in-memory objects

Usage

const git = require('rebuild-git')

const o = {
  id: 'my-id',
  type: 'commit',
  data: Buffer.from('hello world')
}

// Write the object to your repo using fs
const oid = await git.writeObject({
  type: o.type,
  object: o.data
})

if (oid !== o.id) {
  // Bad object
}

License

Apache-2.0

FAQs

Package last updated on 10 Dec 2025

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