express-sequelize-traffic 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,7 +27,7 @@ If you are working on this repository directly:
27
27
 
28
28
  ```bash
29
29
  npm install
30
- npm run build:dashboard
30
+ npm run build
31
31
  ```
32
32
 
33
33
  ## Sequelize Setup
@@ -83,6 +83,15 @@ app.use("/traffic-dashboard", traffic.dashboard);
83
83
  server.listen(3000);
84
84
  ```
85
85
 
86
+ CommonJS applications can use the published `require(...)` entry:
87
+
88
+ ```js
89
+ const express = require("express");
90
+ const http = require("node:http");
91
+ const { Sequelize } = require("sequelize");
92
+ const { createTrafficTracker } = require("express-sequelize-traffic");
93
+ ```
94
+
86
95
  ## Dashboard Usage
87
96
 
88
97
  The dashboard is optional. Set `dashboard.enabled` to `true`, build the frontend assets, attach realtime support, and mount the provided router.