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/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
Library of JavaScript utilities
Utilities that can be used in a browser or Node.js environment.
Features include:
- 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)
- Timing utilities (wrappers for setTimeout and setInterval)
- More...
Documentation
The code is documented with JSDoc. While the output hasn't been committed to source control, you can generate the documentation by using the following commands:
> npm install
> gulp document
Development
Gulp is used to check "linting" and to run unit tests.
> nvm use 6.10.1
> npm install
> gulp lint
> gulp test
Build
Polyfills for ES6 are required:
- Promise
License
This software is provided under the MIT license.