@bleyt-hq-pay/core-js
v0.0.6
Published
## Core Js
Keywords
Readme
Bleyt
Core Js
Overview
Core js is a library that contains common functionalities required by all other services. Would be published and consumed via NPM.
Features
Standardized API HTTP API interface for core services like wallet & message bus.
Exchange Rates Functions Tools to fetch, calculate, and manage real-time and historical currency exchange rates.
Time & Timezone Conversion Utilities to handle time-related operations, including conversions between different time zones, daylight saving adjustments, and UTC normalization.
Money Operations Precision functions for reliable monetary calculations, including currency formatting, rounding rules, and conversion operations.
Tax and Fee Calculations (?) Support for applying and calculating regional taxes and gateway fees based on specific region rules.
Localization Utilities Tools to handle formatting for currencies, dates, numbers, and other locale-specific data.
Regional Compliance Validators Utilities for validating region-specific details such as IBAN, SWIFT codes, postal codes, and tax IDs.
Utility Functions Common utilities functions
Supported Platforms
- Browser
- Node.js (Javascript/Typescript)
Installation
$ npm i @bleyt-hq-pay/core-jsUsage
import { sample } from '@bleyt-hq-pay/core-js';
...
sample()
...
Development
npm startbuilds to/distand runs the project in watch mode so any edits you save insidesrccauses a rebuild to/dist.To do a one-off build, use
npm run buildoryarn build.To run tests, use
npm testoryarn test.
Publish
$ npm run package
$ cd dist
$ npm publish --access public