@drivekyte/currency-utils
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Currency utils

pipeline status

coverage report

Default currency formatters for frontend.

Installation

Run

yarn add @drivekyte/currency-utils

Usage

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 install

Running locally

yarn dev

Running tests

yarn test:watch

Deploying 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

Readme

Keywords

none

Package Sidebar

Install

npm i @drivekyte/currency-utils

Weekly Downloads

75

Version

1.2.3

License

MIT

Unpacked Size

12.3 kB

Total Files

16

Last publish

Collaborators

  • npmerson
  • gvirtuoso
  • filipe-kyte
  • joaolucas.drivekyte
  • infrakyte
  • conrado.drivekyte