2.0.0 • Published 8 years ago

git-to-js v2.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

git-to-js

given a numerical git object type and a buffer, produce a (humane!) javascript object.

var toJS = require('git-to-js')

toJS(1, new Buffer(...)) -> Commit object
toJS(2, new Buffer(...)) -> Tree object
toJS(3, new Buffer(...)) -> Blob object
toJS(4, new Buffer(...)) -> Tag object

API

toJS(type number, buffer) -> Commit | Tree | Blob | Tag

given type and buffer, produce a JS object.

toJS.blob(...) -> Blob

blob constructor. see git-object-blob.

toJS.commit(...) -> Commit

commit constructor. see git-object-commit.

toJS.tree(...) -> Tree

tree constructor. see git-object-tree.

toJS.tag(...) -> Tag

tag constructor. see git-object-tag.

License

MIT

2.0.0

8 years ago

1.0.0

10 years ago

0.0.8

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago