npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

rebuild-git

1.0.0

@d_cassidy

npmHomeRepoSnykSocket
Downloads:4
$ npm install rebuild-git
DailyWeeklyMonthlyYearly

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