@paybygroup/baelish

1.2.0 • Public • Published

Baelish

Lord Petyr Baelish, popularly called Littlefinger, was the Master of Coin on the Small Council under King Robert Baratheon and King Joffrey Baratheon.

This library is a simple wrap for a Money type in javascript.

Usage

import money, { USD, format } from '@paybygroup/baelish';

const amount = money(100, USD);
format(amount); // => "$1.00"

// or

var baelish = require('@paybygroup/baelish');
var money = baelish.default;

var amount = money(100, baelish.USD);
baelish.format(amount); // => "$1.00"

We're still working on the docs, please refer to the source code for now.

Installing

npm install @paybygroup/baelish

Contributing

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @paybygroup/baelish

Weekly Downloads

6

Version

1.2.0

License

MIT

Unpacked Size

13.3 kB

Total Files

6

Last publish

Collaborators

  • carvid
  • edgarjs
  • flangston