{"library":"mg-api-js","type":"library","category":null,"description":"The `mg-api-js` library provides a robust JavaScript wrapper for interacting with the MyGeotab API, designed for both client-side browser environments and Node.js applications. Currently stable at version `3.0.2`, the library offers a convenient abstraction over direct API calls, managing authentication via username/password or session IDs. It includes built-in credential storage (localStorage in browsers, a mock in Node.js) with options for custom datastore integration. Key differentiators include its dual-environment support and direct integration with MyGeotab's authentication mechanisms, simplifying common API interaction patterns. Releases occur on an as-needed basis, addressing bugs, security patches, and Node.js compatibility updates, such as recent fixes for Node.js 22+.","language":"javascript","status":"active","version":"3.0.2","tags":["javascript"],"install":[{"cmd":"npm install mg-api-js","imports":["const GeotabApi = require('mg-api-js');","const api = new window.GeotabApi(authentication, options);","import GeotabApi from 'mg-api-js';"]},{"cmd":"yarn add mg-api-js","imports":[]},{"cmd":"pnpm add mg-api-js","imports":[]}],"homepage":"https://my.geotab.com","github":"https://github.com/Geotab/mg-api-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/mg-api-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/mg-api-js/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}