@nanomatic/mikrotik
v1.0.7
Published
API for the MikroTik router
Downloads
2
Readme
📝 Table of Contents
🏁 Getting Started
Installing
npm i @nanomatic/mikrotik
Using
Example code below:
import MikroTik from '@nanomatic/mikrotik';
try {
new MikroTik('192.168.1.1', 'api_user', 'api_pass', {
refreshTime: 5000,
onRefresh: console.log
});
} catch(error: any) {
console.log(error);
}
// const router = new MikroTik('192.168.1.1', 'api_user', 'api_pass', {
// refreshTime: 5000
// });
// setInterval(() => router.refresh().then(console.log), 1000);
⛏️ Built With
- @types/node - Type definitions for Node.js
- ts-node-dev - TypeScript Node Dev
- tsc-watch - The nodemon for TypeScript
- TSLint - TypeScript linter
- NodeJs - Test Environment
📦 Dependencies
- mikrotik - Full-Featured asynchronous Mikrotik API interface
✍️ Authors
- @NANOmatic - Idea & Initial work