UNPKG
pj-nodegit
Version:
latest (0.28.2)
0.28.2
0.28.1
0.27.12
0.27.11
0.27.1
0.27.0
0.27.0-x
0.26.41
0.26.4
0.18.6
0.18.5
0.18.4
0.18.3
0.18.1
Node.js libgit2 asynchronous native bindings
nodegit.org
pj-nodegit/nodegit
pj-nodegit
/
dist
/
odb_object.js
11 lines
(7 loc)
•
212 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
var
NodeGit
=
require
(
"../"
);
var
OdbObject
=
NodeGit
.
OdbObject
;
OdbObject
.
prototype
.
toString
=
function
(
size
) { size = size ||
this
.
size
();
return
this
.
data
().
toBuffer
(size).
toString
(); };