JSPM

@barchart/common-js

3.27.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 586
  • Score
    100M100P100Q104443F
  • License MIT

Library of common JavaScript utilities

Package Exports

  • @barchart/common-js/api/failures/FailureReason
  • @barchart/common-js/api/failures/FailureType
  • @barchart/common-js/api/http/Gateway
  • @barchart/common-js/api/http/builders/EndpointBuilder
  • @barchart/common-js/api/http/definitions/Endpoint
  • @barchart/common-js/api/http/definitions/ProtocolType
  • @barchart/common-js/api/http/definitions/VerbType
  • @barchart/common-js/api/http/interceptors/ErrorInterceptor
  • @barchart/common-js/api/http/interceptors/RequestInterceptor
  • @barchart/common-js/api/http/interceptors/ResponseInterceptor
  • @barchart/common-js/collections/sorting/ComparatorBuilder
  • @barchart/common-js/collections/sorting/comparators
  • @barchart/common-js/collections/specialized/DisposableStack
  • @barchart/common-js/collections/specialized/PriorityQueue
  • @barchart/common-js/commands/CommandHandler
  • @barchart/common-js/lang/AdHoc
  • @barchart/common-js/lang/Currency
  • @barchart/common-js/lang/Day
  • @barchart/common-js/lang/Decimal
  • @barchart/common-js/lang/Disposable
  • @barchart/common-js/lang/Enum
  • @barchart/common-js/lang/Money
  • @barchart/common-js/lang/Timestamp
  • @barchart/common-js/lang/Timezones
  • @barchart/common-js/lang/array
  • @barchart/common-js/lang/assert
  • @barchart/common-js/lang/attributes
  • @barchart/common-js/lang/connection
  • @barchart/common-js/lang/converters
  • @barchart/common-js/lang/is
  • @barchart/common-js/lang/memoize
  • @barchart/common-js/lang/object
  • @barchart/common-js/lang/promise
  • @barchart/common-js/lang/random
  • @barchart/common-js/lang/timezone
  • @barchart/common-js/messaging/Event
  • @barchart/common-js/messaging/EventMap
  • @barchart/common-js/network/rest/RestAction
  • @barchart/common-js/network/rest/RestEndpoint
  • @barchart/common-js/network/rest/RestProvider
  • @barchart/common-js/serialization/json/DataType
  • @barchart/common-js/serialization/json/Schema
  • @barchart/common-js/serialization/json/builders/SchemaBuilder
  • @barchart/common-js/timing/RateLimiter
  • @barchart/common-js/timing/Scheduler
  • @barchart/common-js/timing/Serializer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@barchart/common-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@barchart/common-js

AWS CodeBuild NPM

A public library of shared JavaScript utilities. These utilities are agnostic to environment -- they are suitable for use in Node.js and web browsers.

Overview

Features

  • Simple utilities (type checking, assertions, bit masking, etc)
  • Data structures (decimals, days, enumerations, etc)
  • Simple collections (queues, stacks, trees, etc)
  • Specialized collections (priority queues, evicting lists, evicting maps, etc)
  • Browse the code...

Companion Library

A companion library called @barchart/common-node-js contains utilities for exclusive use in Node.js environments (i.e. not suitable for use in browsers).

Development

Documentation

The code is documented with JSDoc. This will be used as the basis for formal documentation (coming soon).

Package Managers

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

npm install @barchart/common-js -S

Build

Modern JavaScript language features are used. Some browsers may still require polyfills.

License

This software is provided under the MIT license.