UNPKG
maxmind
Version:
latest (5.0.1)
5.0.1
5.0.0
4.3.29
4.3.28
4.3.27
4.3.26
4.3.25
4.3.24
4.3.23
4.3.22
4.3.21
4.3.20
4.3.19
4.3.18
4.3.17
4.3.16
4.3.15
4.3.14
4.3.13
4.3.12
4.3.11
4.3.10
4.3.9
4.3.8
4.3.7
4.3.6
4.3.5
4.3.4
4.3.3
4.3.2
4.3.1
4.3.0
4.2.0
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.0
3.1.2
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.12.0
2.11.2
2.11.1
2.11.0
2.10.0
2.9.0
2.8.0
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.0
2.0.3
2.0.0
1.3.0
1.2.0
1.1.0
1.0.0
0.6.0
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.6
0.4.5
0.4.4
0.4.3
0.4.1
0.4.0
0.3.8
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.7
0.1.4
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
IP lookup using Maxmind databases
github.com/runk/node-maxmind
runk/node-maxmind
maxmind
/
lib
/
is-gzip.js
9 lines
•
272 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
(
buf
) =>
{
if
(!buf || buf.
length
<
3
) {
return
false
; }
return
buf[
0
] ===
0x1f
&& buf[
1
] ===
0x8b
&& buf[
2
] ===
0x08
; };
//# sourceMappingURL=is-gzip.js.map