@soldi/dinero

0.4.2 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @soldi/dinero

Weekly Downloads

0

Version

0.4.2

License

MIT

Unpacked Size

404 kB

Total Files

13

Last publish

Collaborators

  • nick.codes