Skip to content

Commit 919b6cb

Browse files
committed
init
1 parent e5397c6 commit 919b6cb

15 files changed

+1802
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
132+
.idea

.mocharc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://json.schemastore.org/mocharc.json",
3+
"require": ["tsx", "chai/register-expect", "mocha.setup.js"],
4+
"timeout": 10000
5+
}

.prettierignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"useTabs": false,
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"printWidth": 100
7+
}

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
# node-netkit
1+
# node-netkit
2+
3+
This package is written for Node.js and offers utilities for working with networks on Linux.
4+
5+
### Installation
6+
7+
```bash
8+
npm install node-netkit
9+
```

mocha.setup.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
process.env.NODE_ENV = 'test';

package.json

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"name": "node-netkit",
3+
"description": "Awesome utilities for working with network on Linux",
4+
"version": "0.1.0-canary.0",
5+
"scripts": {
6+
"dev": "tsup --watch",
7+
"build": "tsup",
8+
"typecheck": "tsc --noEmit",
9+
"format:check": "prettier --check \"**/*.{ts,md}\"",
10+
"format": "prettier --write .",
11+
"prepublishOnly": "pnpm run format:check && pnpm run typecheck && pnpm run build"
12+
},
13+
"type": "module",
14+
"packageManager": "pnpm@8.12.0",
15+
"dependencies": {
16+
"execa": "^8.0.1"
17+
},
18+
"devDependencies": {
19+
"@types/chai": "^4.3.11",
20+
"@types/mocha": "^10.0.6",
21+
"@types/node": "^20.10.5",
22+
"@types/prompts": "^2.4.9",
23+
"chai": "^4.3.10",
24+
"mocha": "^10.2.0",
25+
"prettier": "^3.1.0",
26+
"tsup": "^8.0.1",
27+
"tsx": "^4.7.0",
28+
"type-fest": "^4.8.2",
29+
"typescript": "^5.3.2"
30+
},
31+
"main": "dist/index.js",
32+
"module": "dist/index.mjs",
33+
"types": "dist/index.d.ts",
34+
"files": [
35+
"dist/**"
36+
],
37+
"exports": {
38+
".": {
39+
"import": {
40+
"types": "./dist/index.d.mts",
41+
"default": "./dist/index.mjs"
42+
},
43+
"require": {
44+
"types": "./dist/index.d.ts",
45+
"default": "./dist/index.js"
46+
}
47+
},
48+
"./ip": {
49+
"import": {
50+
"types": "./dist/ip.d.mts",
51+
"default": "./dist/ip.mjs"
52+
},
53+
"require": {
54+
"types": "./dist/ip.d.ts",
55+
"default": "./dist/ip.js"
56+
}
57+
}
58+
},
59+
"author": "Shahrad Elahi <shahrad@litehex.com> (https://github.com/shahradelahi)",
60+
"repository": {
61+
"type": "git",
62+
"url": "https://github.com/shahradelahi/node-netkit.git"
63+
},
64+
"license": "GPL-3.0",
65+
"keywords": [
66+
"network",
67+
"ip",
68+
"tun",
69+
"route",
70+
"linux",
71+
"toolkit",
72+
"node"
73+
],
74+
"publishConfig": {
75+
"access": "public"
76+
}
77+
}

0 commit comments

Comments
 (0)