Socket
Socket
Sign inDemoInstall

@barchart/events-api-common

Package Overview
Dependencies
19
Maintainers
14
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @barchart/events-api-common

Common classes used by the Barchart Event Tracking System


Version published
Weekly downloads
6
decreased by-68.42%
Maintainers
14
Created
Weekly downloads
 

Readme

Source

@barchart/events-api-common

NPM

A public library of JavaScript code used Barchart Event Tracking Service — a simple tool for collecting and reporting usage statistics.

Overview

Simply put, this project contains code that runs on both the servers (i.e. Serverless applications) and clients (e.g. browser, mobile, etc).

/lib/data/serialization

Data is passed between client and server in JSON format. However, the code works with more complex types. For example, Decimal instances are used in place of native JavaScript floats and Day instances are used instead of native JavaScript Dates.

So, before data is exchanged, it must be converted to pure JSON. Conversely, when data is received, as pure JSON, it's translated into more complex types before use. This is facilitated by the Schema definitions which build custom "reviver" functions for JSON parsing.

Notable Consumers

Package Managers

This library has been published as a public module to NPM as @barchart/events-api-common.

FAQs

Last updated on 18 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc