A lightweight JavaScript library for connecting to and interacting with the OcuruPOS database system. Version 0.2.129 provides basic CRUD operations and query capabilities tailored for point-of-sale data management. The package is in early development with frequent releases but lacks comprehensive documentation. Designed specifically for OcuruPOS ecosystem integration, it is not a general-purpose database client.
npm install ocurupos.database.apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to the OcuruPOS database, runs a query to fetch products, and logs results.
Use connect({ host, port, user, password }) instead of connect(host, port, user, password).Replace db.execute(sql) with query(db, sql).
Reuse a single connection or implement a connection pool externally.
Upgrade to version >=0.2.50 or use 'end' method: await db.end();
Use exact string in import: import ... from 'ocurupos.database.api'; Ensure the package is installed.
Explicitly set host to '127.0.0.1' in connection options.
No dependency data recorded yet.