UNPKG
js-git
Version:
latest (0.7.8)
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.0
0.4.2
0.4.1
0.4.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.0.0
Git Implemented in JavaScript
github.com/creationix/js-git
creationix/js-git
js-git
/
lib
/
inflate.js
11 lines
(10 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
pako =
require
(
'pako'
);
var
Binary
=
require
(
'bodec'
).
Binary
;
if
(
Binary
===
Uint8Array
) {
module
.
exports
= pako.
inflate
; }
else
{
module
.
exports
=
function
inflate
(
value
) {
return
new
Binary
(pako.
inflate
(
new
Uint8Array
(value))); }; }