0.4.2 • Published 3 years ago

@soldi/dinero v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@soldi/dinero

This is a compatibility layer on top of @soldi/core which offers a Dinero v1 compatible API.

codecov quality dependencies npm (scoped) GitHub npm bundle size (scoped) Snyk Vulnerabilities for npm scoped package

Installation

If you are an existing Dinero v1 user you can easily switch to Soldi:

npm uninstall dinero.js && npm install @soldi/dinero

or

yarn remove dinero.js && yarn add @soldi/dinero

Then change your imports/require to use @soldi/dinero.

// Old: const Dinero = require('dinero.js');
const Dinero = require('@soldi/dinero');

or

// Old: import Dinero from 'dinero.js';
import Dinero from '@soldi/dinero';

If you have switched to native ESM now supported by node and most browsers, you can import @soldi/dinero/index.mjs directly as a module using the index.mjs at the root.

// Old: import Dinero from 'dinero.js';
import Dinero from '@soldi/dinero/index.mjs';

Usage

@soldi/dinero offers an identical API to Dinero v1 API.

As such all of the documentation for Dinero v1 can be used with @soldi/dinero.

0.4.2

3 years ago

0.3.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.0-alpha.0

3 years ago