2.0.1 • Published 12 months ago

mikroapi v2.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
12 months ago

mikroapi

Minimalist Mikrotik API client

Why

The JavaScript client recommended on the wiki doesn't properly specify its dependencies.

How

Just a very basic port of the python implementation shown on the wiki.

Example

const api = new MikroApi({
	host: '1.1.1.1',
	port: 8729,
	username: 'admin',
	password: 'xxx',
	tls: {
		rejectUnauthorized: false // maybe don't do this
	}
})
await api.connect()
const res = await api.exec('/routing/bgp/peer/print', {
	'.proplist': 'prefix-count,disabled,state,uptime,remote-as,remote-address'
})
console.log(res)

License

MIT

2.0.1

12 months ago

2.0.0

12 months ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago