@gibme/ipinfo 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +9 -0
- package/dist/ipinfo.d.ts +35 -0
- package/dist/ipinfo.js +168 -0
- package/dist/ipinfo.js.map +1 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2016-2022 Brandon Lehmann
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/ipinfo.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IP Prefix information
|
|
3
|
+
*/
|
|
4
|
+
export interface PrefixEntry {
|
|
5
|
+
address: string;
|
|
6
|
+
zone: string;
|
|
7
|
+
asn: number;
|
|
8
|
+
prefix: string;
|
|
9
|
+
country: string;
|
|
10
|
+
registry: string;
|
|
11
|
+
allocated: Date;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* ASN information
|
|
15
|
+
*/
|
|
16
|
+
export interface ASNEntry {
|
|
17
|
+
asn: number;
|
|
18
|
+
country: string;
|
|
19
|
+
registry: string;
|
|
20
|
+
allocated: Date;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* IP Prefix information including the ASN name (if available)
|
|
25
|
+
*/
|
|
26
|
+
export interface IPInfo extends PrefixEntry {
|
|
27
|
+
as?: ASNEntry;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Looks up information regarding the IP address supplied
|
|
31
|
+
*
|
|
32
|
+
* @param address
|
|
33
|
+
*/
|
|
34
|
+
export declare const IPInfo: (address: string) => Promise<IPInfo>;
|
|
35
|
+
export default IPInfo;
|
package/dist/ipinfo.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2016-2023, Brandon Lehmann <brandonlehmann@gmail.com>
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
// in the Software without restriction, including without limitation the rights
|
|
7
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
// copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
// SOFTWARE.
|
|
21
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(o, k2, desc);
|
|
28
|
+
}) : (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
o[k2] = m[k];
|
|
31
|
+
}));
|
|
32
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
33
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
34
|
+
}) : function(o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
37
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
45
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
46
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
47
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
48
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
49
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
50
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.IPInfo = void 0;
|
|
55
|
+
const dns = __importStar(require("dns"));
|
|
56
|
+
/** @ignore */
|
|
57
|
+
const countColons = (value) => {
|
|
58
|
+
let count = 0;
|
|
59
|
+
value.replace(/:/g, val => { count++; return val; });
|
|
60
|
+
return count;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @ignore
|
|
64
|
+
* Expands compressed IPv6 address to uncompressed form
|
|
65
|
+
*
|
|
66
|
+
* @param value
|
|
67
|
+
*/
|
|
68
|
+
const expandIPv6 = (value) => {
|
|
69
|
+
return value.replace(/::/, () => {
|
|
70
|
+
return `:${Array((7 - countColons(value)) + 1).join(':')}:`;
|
|
71
|
+
})
|
|
72
|
+
.split(':')
|
|
73
|
+
.map(val => {
|
|
74
|
+
return Array(4 - val.length).fill('0').join('') + val;
|
|
75
|
+
})
|
|
76
|
+
.join(':');
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @ignore
|
|
80
|
+
* Looks up the prefix information via DNS
|
|
81
|
+
*
|
|
82
|
+
* @param address
|
|
83
|
+
*/
|
|
84
|
+
const prefix = (address) => __awaiter(void 0, void 0, void 0, function* () {
|
|
85
|
+
return new Promise((resolve, reject) => {
|
|
86
|
+
const _address = address;
|
|
87
|
+
address = address.split('/')[0]; // strip off any CIDR notation
|
|
88
|
+
if (address.includes(':')) {
|
|
89
|
+
address = expandIPv6(address);
|
|
90
|
+
address = address.split(':')
|
|
91
|
+
.join('')
|
|
92
|
+
.split('')
|
|
93
|
+
.reverse()
|
|
94
|
+
.join('.');
|
|
95
|
+
address = `${address}.origin6.asn.cymru.com`;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
address = address.split('.')
|
|
99
|
+
.reverse()
|
|
100
|
+
.join('.');
|
|
101
|
+
address = `${address}.origin.asn.cymru.com`;
|
|
102
|
+
}
|
|
103
|
+
dns.resolveTxt(address, (error, records) => {
|
|
104
|
+
if (error) {
|
|
105
|
+
return reject(error);
|
|
106
|
+
}
|
|
107
|
+
if (records.length === 0 || records[0].length === 0) {
|
|
108
|
+
throw new Error('No records found');
|
|
109
|
+
}
|
|
110
|
+
const [asn, prefix, country, registry, allocated] = records[0][0].split('|')
|
|
111
|
+
.map(elem => elem.trim());
|
|
112
|
+
return resolve({
|
|
113
|
+
address: _address,
|
|
114
|
+
zone: address,
|
|
115
|
+
asn: parseInt(asn),
|
|
116
|
+
prefix,
|
|
117
|
+
country: country.toUpperCase(),
|
|
118
|
+
registry: registry.toUpperCase(),
|
|
119
|
+
allocated: new Date(allocated)
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* @ignore
|
|
126
|
+
* Looks up information on the ASN via DNS
|
|
127
|
+
*
|
|
128
|
+
* @param as
|
|
129
|
+
*/
|
|
130
|
+
const asn = (as) => __awaiter(void 0, void 0, void 0, function* () {
|
|
131
|
+
return new Promise((resolve, reject) => {
|
|
132
|
+
dns.resolveTxt(`AS${as}.asn.cymru.com`, (error, records) => {
|
|
133
|
+
if (error) {
|
|
134
|
+
return reject(error);
|
|
135
|
+
}
|
|
136
|
+
if (records.length === 0 || records[0].length === 0) {
|
|
137
|
+
throw new Error('No records found');
|
|
138
|
+
}
|
|
139
|
+
const [, country, registry, allocated, name] = records[0][0].split('|')
|
|
140
|
+
.map(elem => elem.trim());
|
|
141
|
+
return resolve({
|
|
142
|
+
asn: as,
|
|
143
|
+
country: country.toUpperCase(),
|
|
144
|
+
registry: registry.toUpperCase(),
|
|
145
|
+
allocated: new Date(allocated),
|
|
146
|
+
name
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
/**
|
|
152
|
+
* Looks up information regarding the IP address supplied
|
|
153
|
+
*
|
|
154
|
+
* @param address
|
|
155
|
+
*/
|
|
156
|
+
const IPInfo = (address) => __awaiter(void 0, void 0, void 0, function* () {
|
|
157
|
+
const info = yield prefix(address);
|
|
158
|
+
try {
|
|
159
|
+
const _asn = yield asn(info.asn);
|
|
160
|
+
return Object.assign(Object.assign({}, info), { as: _asn });
|
|
161
|
+
}
|
|
162
|
+
catch (_a) {
|
|
163
|
+
return Object.assign({}, info);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
exports.IPInfo = IPInfo;
|
|
167
|
+
exports.default = exports.IPInfo;
|
|
168
|
+
//# sourceMappingURL=ipinfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ipinfo.js","sourceRoot":"","sources":["../src/ipinfo.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,yCAA2B;AAE3B,cAAc;AACd,MAAM,WAAW,GAAG,CAAC,KAAa,EAAU,EAAE;IAC1C,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,CAAC,OAAO,CAAC,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
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gibme/ipinfo",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "A simple IP information lookup helper using Team CYMRU services",
|
|
5
|
+
"main": "dist/ipinfo.js",
|
|
6
|
+
"types": "dist/ipinfo.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/*"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "yarn build:typescript",
|
|
13
|
+
"build:docs": "./node_modules/.bin/typedoc",
|
|
14
|
+
"build:typescript": "./node_modules/.bin/tsc",
|
|
15
|
+
"test": "yarn test:style && yarn test:mocha",
|
|
16
|
+
"test:style": "yarn style",
|
|
17
|
+
"test:mocha": "./node_modules/.bin/mocha --exit --timeout 30000 --require ts-node/register test/test.ts",
|
|
18
|
+
"style": "./node_modules/.bin/eslint src/**/*.ts test/**/*.ts",
|
|
19
|
+
"fix-style": "./node_modules/.bin/eslint --fix src/**/*.ts test/**/*.ts",
|
|
20
|
+
"fix:style": "yarn fix-style",
|
|
21
|
+
"prepublishOnly": "yarn build"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/gibme-npm/ipinfo.git"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/gibme-npm/ipinfo/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://gibme-npm.github.io/ipinfo/",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=16"
|
|
33
|
+
},
|
|
34
|
+
"engineStrict": true,
|
|
35
|
+
"author": {
|
|
36
|
+
"name": "Brandon Lehmann",
|
|
37
|
+
"email": "brandonlehmann@gmail.com"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/mocha": "^10.0.0",
|
|
42
|
+
"@types/node": "^18.11.9",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
44
|
+
"@typescript-eslint/parser": "^5.42.0",
|
|
45
|
+
"eslint": "^8.26.0",
|
|
46
|
+
"eslint-config-standard": "^17.0.0",
|
|
47
|
+
"eslint-plugin-import": "^2.26.0",
|
|
48
|
+
"eslint-plugin-n": "^15.4.0",
|
|
49
|
+
"eslint-plugin-node": "^11.1.0",
|
|
50
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
51
|
+
"mocha": "^10.1.0",
|
|
52
|
+
"ts-node": "^10.9.1",
|
|
53
|
+
"typedoc": "^0.23.21",
|
|
54
|
+
"typescript": "^4.8.4"
|
|
55
|
+
}
|
|
56
|
+
}
|