open-index/open-npm huggingface dataset:
npm package: @neumatter/monetary-value
Description: For mathematically accurate monetary calculations in JavaScript and TypeScript.
Author: Cal Young
Latest version: 1.0.0


# Monetary Value Library
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)

## Introduction
This TypeScript library provides a robust implementation for handling monetary values. It includes features such as arithmetic operations, currency conversion, comparison, allocation, and scaling of monetary amounts in different currencies. The core of the library revolves around the `MonetaryValue` class which encapsulates all functionality needed to manipulate monetary amounts with precision.

## Installation
To install the Monetary Value Library, you will need Node.js and npm (Node Package Manager) installed on your machine. Once you have those set up, you can install the library via npm:

```bash
pnpm add @neumatter/monetary-value --save
```

## Usage

### Creating Monetary Values

To create a new monetary value, you can use the `MonetaryValue` class constructor.

```javascript
import { MonetaryValue } from '@neumatter/monetary-value'

const amount = MonetaryValue.from('100.00 USD')
const amount2 = new MonetaryValue(10000, 2, 'USD')
console.log(amount.toString()) // Outputs '100.00 USD'
console.log(amount2.toString()) // Outputs '100.00 USD'
```

### Arithmetic Operations

```javascript
import { MonetaryValue } from '@neumatter/monetary-value'

const amount1 = MonetaryValue.from('100.00 USD')
const amount2 = MonetaryValue.from('50.00 USD')

const sum = amount1.add(amount2)
const difference = amount1.subtract(amount2)
const product = amount1.multiply(2)

console.log(sum.toString()) // Outputs '150.00 USD'
console.log(difference.toString()) // Outputs '50.00 USD'
console.log(product.toString()) // Outputs '200.00 USD'
```

### Comparison and Allocation

```javascript
import { MonetaryValue } from '@neumatter/monetary-value'

const amount1 = MonetaryValue.from('100.00 USD')
const amount2 = MonetaryValue.from('50.00 USD')

console.log(amount1.isGreaterThan(amount2)) // Outputs true
console.log(amount1.isLessThan(amount2)) // Outputs false
console.log(amount1.isEqualTo(amount2)) // Outputs false

const [allocated1, allocated2] = amount1.allocate([50, 50])
console.log(allocated1.toString()) // Outputs '50.00 USD'
console.log(allocated2.toString()) // Outputs '50.00 USD'
```
npm package: @neumatter/neumattercss
Description: compile css into a light-weight neumorphic framework
Author: Cal Young
Latest version: 0.0.11

![plot](https://github.com/Clyng57/neumatter/raw/main/public/neumatter-logo-blackBG-01.svg)

A light-weight neumorphic css framework to standardize layouts and spacing. 
A moderate utility first approach.

    prefix-property/value:conditional


Add :hover or :active to any attributes class except for a-rounded.

    a-bg/concave:hover


Add :sm, :md, :lg, :xl, :xxl to various classes to create breakpoints. This will cause the width to go from 50% to 100% at the large breakpoint.

    l-column/6:lg


System margin and padding controlled by the systemMargin in the config file.

    u-[m, p]/system
    u-[m, p]t/system
    u-[m, p]b/system
    u-[m, p]x/system
    u-[m, p]y/system

[ View Documentation ](https://neumattercss.com)

## Table of Contents
1. [ Download ](#download) <br />
2. [ Install ](#install) <br />
3. [ Getting Started ](#gettingstarted) <br />
4. [ Generate Config File ](#genconfig) <br />
5. [ Configuration Options ](#config) <br />
6. [ Compile ](#compile) <br />
7. [ Samples ](#samples) <br />

<a name="download"></a>
### Download
Download the /_build directory

<a name="install"></a>
### Install
    
    npm i @neumatter/neumattercss 

<a name="gettingstarted"></a>
### Getting Started
Edit your package.json file and in the scripts write:
    
    "neucss": "./node_modules/.bin/neucss"

<a name="genconfig"></a>
### Generate the neumatter.config file
    
    npm run neucss config

<a name="config"></a>
### Configuration Options
To compile neumatter.css to a certain directory edit the exportPath in neumatter.config.

Edit colors, system margin & padding, system border radius, and exclude css from being compiled.

<a name="compile"></a>
### Compile neumatter.css
    
    npm run neucss compile

<a name="samples"></a>
### Samples of neumatter.css in use:

![plot](https://github.com/Clyng57/neumatter/raw/main/public/neumattercssBGColorPage.png)


![plot](https://github.com/Clyng57/neumatter/raw/main/public/neumattercssConcavePage.png)


![plot](https://github.com/Clyng57/neumatter/raw/main/public/neumattercssFormPage.png)

[ View More ](https://neumattercss.com)