UNPKG
@readme/nodegit
Version:
latest (3.2.0)
3.2.0
3.1.0
3.0.0
2.1.1
2.0.3
2.0.2
2.0.1
2.0.0
1.2.0
1.1.1
1.1.0
1.1.0-beta.1
1.1.0-alpha.7
1.1.0-alpha.4
1.0.0
1.0.0-alpha.6
1.0.0-alpha.4
1.0.0-alpha.1
0.28.0-alpha.26
Node.js libgit2 asynchronous native bindings
nodegit.org
readmeio/nodegit
@readme/nodegit
/
lib
/
odb_object.js
10 lines
(6 loc)
•
197 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
NodeGit
=
require
(
"../"
);
var
OdbObject
=
NodeGit
.
OdbObject
;
OdbObject
.
prototype
.
toString
=
function
(
size
) { size = size ||
this
.
size
();
return
this
.
data
().
toBuffer
(size).
toString
(); };