web-analyst
Version:
Web Analyst is a simple back-end tracking system to measure your web app performance.
24 lines (20 loc) • 487 B
JavaScript
/**
* @typedef HIT_TYPE
* @property {string} ip
* @property {string} acceptLanguage
* @property {string} userAgent
* @property {string} pathname
* @property {string} search
* @property {string} date
* @type {null}
*/
/**
* @typedef PARSED_DATE_TYPE
* @property {string} date
* @property {number} hour
* @property {string} time
* @property {number} day
* @property {number} week
* @property {number} month
* @returns {null|{date, hour: number, time, day: number}}
*/