Giter Site home page Giter Site logo

joeyren-cn / dinero.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dinerojs/dinero.js

0.0 0.0 0.0 8.17 MB

Create, calculate, and format money in JavaScript and TypeScript.

Home Page: https://v2.dinerojs.com/docs

License: MIT License

JavaScript 4.41% Shell 0.02% TypeScript 95.20% CSS 0.38%

dinero.js's Introduction

Dinero.js

Stability: alpha CircleCI NPM

Dinero.js lets you create, calculate, and format money safely in JavaScript and TypeScript.
v2.dinerojs.com/docs


Money is complex, and the primitives of the language aren't enough to properly represent it. Dinero.js is a JavaScript library that lets you express monetary values, but also perform mutations, conversions, comparisons, formatting, and overall make money manipulation easier and safer in your application.

โ„น๏ธ Dinero.js v2 is currently in alpha. For v1, check the v1 branch and docs.

๐Ÿ“ฆ Install

npm install dinero.js@alpha

# or

yarn add dinero.js@alpha

โšก๏ธ Quick start

Dinero objects are minimal. Every function in dinero.js is side-effect free, allowing you only to bundle exactly what you use.

import { USD } from '@dinero.js/currencies';
import { dinero, add } from 'dinero.js';

const d1 = dinero({ amount: 500, currency: USD });
const d2 = dinero({ amount: 800, currency: USD });

add(d1, d2);

Check out the quick start guide on the documentation.

๐Ÿ“š Documentation

The documentation lets you learn about all aspects of the library.

  • Getting started to get up and running quickly with Dinero.js
  • Core concepts to learn about the underlying principles behind the library
  • Guides to dig deeper into specific use cases.
  • API for a comprehensive list of available functions and their parameters.
  • FAQ for common answers to questions you might have

Visit the full documentation to know more.

๐Ÿ‘ฅ Contributors

Dinero.js contributors

From v1


Sarah Dayan

Yacine Hmito

Scott Trinh

Rolandas Barysas

Luiz "Bills"

Leonardo Dino

Roman Komarov

Juan Garcia

Freddy Robinson

Andy Burke

Andre Wiggins

David DeSandro

Max Kรถrlinge

Ilia Ermolin

Kevin Brown

Sean Walker

๐Ÿ“œ License

MIT


Powered by Vercel

dinero.js's People

Contributors

sarahdayan avatar renovate[bot] avatar dependabot[bot] avatar haroenv avatar danrivett avatar renovate-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.