@drivekyte/currency-utils
v1.2.3
Published
[](https://git.drivekyte.com/kytecoredevelopers/currency-utils/-/commits/master)
Keywords
Readme
Currency utils
Default currency formatters for frontend.
Installation
Run
yarn add @drivekyte/currency-utilsUsage
import useCurrencyUtils from '@drivekyte/currency-utils';
const Foo = () => {
const formatCurrency = useCurrencyUtils();
return <>{formatCurrency(20)}</>;
};Contributing
Contributions to this project are welcome. After cloning the repo, use the following instructions:
Installing dependencies
yarn installRunning locally
yarn devRunning tests
yarn test:watchDeploying into NPM
We've a CI/CD for publishing automatically to NPM once a branch is merged into master. The step to publish to NPM should be manually triggered. Make sure to bump the package version before.
Deploying locally
We use yalc in order to deploy and test locally.
yarn publish:local