8
This commit is contained in:
parent
71c0f225d0
commit
70ee170f58
4
.gitignore
vendored
4
.gitignore
vendored
@ -174,6 +174,4 @@ dist
|
|||||||
# Finder (MacOS) folder config
|
# Finder (MacOS) folder config
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
.prettierrc
|
.prettierrc
|
||||||
|
|
||||||
package-lock.json
|
|
3
index.ts
3
index.ts
@ -1,7 +1,8 @@
|
|||||||
import { serve } from 'bun';
|
import { serve } from 'bun';
|
||||||
import { RouterOSAPI } from 'node-routeros';
|
import { RouterOSAPI } from 'node-routeros';
|
||||||
|
|
||||||
const path = '/config/config.json';
|
// const path = '/config/config.json';
|
||||||
|
const path = './config.json';
|
||||||
const cfgfile = Bun.file(path);
|
const cfgfile = Bun.file(path);
|
||||||
let cfg = await cfgfile.json();
|
let cfg = await cfgfile.json();
|
||||||
console.log(cfg);
|
console.log(cfg);
|
||||||
|
31
package.json
31
package.json
@ -1,18 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "netgate-switch",
|
"name": "netgate-switch",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "latest"
|
"@types/bun": "latest"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^5.0.0"
|
"typescript": "^5.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun run index.ts"
|
"dev": "bun run index.ts"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"netgate-switch": "file:",
|
"node-routeros": "^1.6.9"
|
||||||
"node-routeros": "^1.6.9"
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user