common
/
0.4.4
common 0.4.4
Install from the command line:
Learn more about npm packages
$ npm install @timing71/common@0.4.4
Install via package.json:
"@timing71/common": "0.4.4"
About this version
Timing71 is a motorsports live timing aggregation and analysis system. This package contains common functions used by the Timing71 website, command-line application and backend services.
-
messages/
contains generators for the messages that appear in the bottom third of the timing screen. -
analysis/
defines themobx-state-tree
object that provides real-time analysis and statistics. -
racing.js
contains the enum-like classesStat
andFlagState
used extensively throughout the other codebases. -
replay.js
contains functions to read replay files, as well as thecreateIFrame
method used to help generate them. -
services.js
defines the main base class for all interfaces with upstream timing providers,Service
, as well as a boilerplateHTTPPollingService
class for simple cases. It also contains the main service provider registry; additional service provider classes should define a static propertyregex
to define which source URLs should use that provider, then register themselves using theregisterServiceProvider(clazz)
method. -
statExtractor.js
defines theStatExtractor
class, a helper to extract a givenStat
for a car from a Common Timing Format frame.
Other files contain miscellaneous other pieces of shared code, such as time and date handling and formatting.
A test suite using jest
is provided and can be run using yarn run test
.