-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
executable file
·93 lines (92 loc) · 1.95 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
type Destination = {
title: string;
go: (pkg: string) => string;
};
export function getDestinations(): Destination[] {
return [
{
title: "Bundlephobia",
go: (pkg) => `https://bundlephobia.com/result?p=${pkg}`,
},
{
title: "Changelog",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} c`,
},
{
title: "Repository Root",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} g`,
},
{
title: "Homepage",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} h`,
},
{
title: "Issues",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} i`,
},
{
title: "NPM",
go: (pkg) => `https://npmjs.com/package/${pkg}`,
},
{
title: "Pull/Merge Requests",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} p`,
},
{
title: "Releases",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} r`,
},
{
title: "Source",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} s`,
},
{
title: "Tags",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} t`,
},
{
title: "Unpkg",
go: (pkg) => `https://unpkg.com/browse/${pkg}/`,
},
{
title: "Versions",
go: (pkg) => `https://npmjs.com/package/${pkg}?activeTab=versions`,
},
{
title: "Yarn",
go: (pkg) => `https://yarnpkg.com/package/${pkg}`,
},
{
title: "Code",
go: (pkg) => `https://njt.vercel.app/jump?to=${pkg} .`,
},
{
title: "Trends",
go: (pkg) => `https://npmtrends.com/${pkg}`,
},
{
title: "Graph",
go: (pkg) => `https://npmgraph.js.org/?q=${pkg}`,
},
{
title: "Snyk",
go: (pkg) => `https://snyk.io/advisor/npm-package/${pkg}`,
},
{
title: "Socket",
go: (pkg) => `https://socket.dev/npm/package/${pkg}`,
},
{
title: "Packagephobia",
go: (pkg) => `https://packagephobia.com/result?p=${pkg}`,
},
{
title: "Package Size",
go: (pkg) => `https://pkg-size.dev/${pkg}`,
},
{
title: "TypeScript Docs",
go: (pkg) => `https://tsdocs.dev/search/docs/${pkg}`,
},
];
}