This commit is contained in:
紫云徽 2024-08-05 21:24:44 +08:00
parent 71c0f225d0
commit 70ee170f58
4 changed files with 18 additions and 20 deletions

4
.gitignore vendored
View File

@ -174,6 +174,4 @@ dist
# Finder (MacOS) folder config
.DS_Store
.prettierrc
package-lock.json
.prettierrc

BIN
bun.lockb

Binary file not shown.

View File

@ -1,7 +1,8 @@
import { serve } from 'bun';
import { RouterOSAPI } from 'node-routeros';
const path = '/config/config.json';
// const path = '/config/config.json';
const path = './config.json';
const cfgfile = Bun.file(path);
let cfg = await cfgfile.json();
console.log(cfg);

View File

@ -1,18 +1,17 @@
{
"name": "netgate-switch",
"module": "index.ts",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"scripts": {
"dev": "bun run index.ts"
},
"type": "module",
"dependencies": {
"netgate-switch": "file:",
"node-routeros": "^1.6.9"
}
"name": "netgate-switch",
"module": "index.ts",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"scripts": {
"dev": "bun run index.ts"
},
"type": "module",
"dependencies": {
"node-routeros": "^1.6.9"
}
}