fuck-ip 1.0.1
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/README.md +35 -0
- package/bin/ip +1 -0
- package/index.ts +1 -0
- package/package.json +26 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Fuck the IP / 淦 IP
|
|
2
|
+
|
|
3
|
+
## Why you should use this package / 为什么你要用这个包
|
|
4
|
+
|
|
5
|
+
Because you want to fuck those complex command lines to get IP information.
|
|
6
|
+
|
|
7
|
+
因为你不想记那么多操蛋的命令行。
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. Install globally using npm
|
|
12
|
+
|
|
13
|
+
```zsh
|
|
14
|
+
npm i fuck-ip -g
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
2. Type `ip` in your ternimal
|
|
18
|
+
|
|
19
|
+
```zsh
|
|
20
|
+
ip
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
3. Done! You will get:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"ip": "113.116.xx.xx",
|
|
28
|
+
"city": "Shenzhen",
|
|
29
|
+
"region": "Guangdong",
|
|
30
|
+
"country": "CN",
|
|
31
|
+
"loc": "22.5455,114.0683",
|
|
32
|
+
"org": "AS4134 CHINANET-BACKBONE",
|
|
33
|
+
"timezone": "Asia/Shanghai",
|
|
34
|
+
}
|
|
35
|
+
```
|
package/bin/ip
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
curl ipinfo.io
|
package/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("Fuck those convoluted command lines");
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fuck-ip",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Get your IP information easily, and fuck those convoluted command lines.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ip": "./bin/ip"
|
|
7
|
+
},
|
|
8
|
+
"main": "index.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "node index.ts"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"ip",
|
|
14
|
+
"city",
|
|
15
|
+
"country",
|
|
16
|
+
"location",
|
|
17
|
+
"tool"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"author": "William Tan youngtam733@gmail.com",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/ChuYang-FE/fuck-ip.git"
|
|
25
|
+
}
|
|
26
|
+
}
|