@the-moonlight-hub/core-js
v0.0.9
Published
## Core Js
Downloads
8
Readme
Moonlight
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.
Localization Utilities Tools to handle formatting for currencies, dates, numbers, and other locale-specific data.
Utility Functions Common utilities functions
Supported Platforms
- Browser
- Node.js (Javascript/Typescript)
Installation
$ npm i @the-moonlight-hub/core-jsUsage
import { sample } from '@the-moonlight-hub/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