# knockout.money

> A simple knockout extender which wraps accounting.js

Latest version **2.0.1** (published 2016-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install knockout.money
pnpm add knockout.money
yarn add knockout.money
bun add knockout.money
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2016-06-29 |
| First published | 2016-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | CivicSource |
| Maintainers | civicsource |

## Links

- npm: https://www.npmjs.com/package/knockout.money
- Repository: https://github.com/civicsource/knockout.money
- Homepage: https://github.com/civicsource/knockout.money#readme
- Issues: https://github.com/civicsource/knockout.money/issues
- npm.io page: https://npm.io/package/knockout.money

## Dependencies (1)

- [accounting](https://npm.io/package/accounting.md) 0.x

## Recent versions

- 2.0.1 (latest) — 2016-06-29
- 2.0.0 — 2016-06-29

## README

# Knockout Money Extender

> A simple knockout extender which wraps [accounting.js](http://josscrowcroft.github.io/accounting.js/).

## Installation

```
npm install knockout-money
```

Then add `knockout.money.js` to your project.

## Usage

`require` the script in your bundle, then:

```js
var money = ko.observable().extend({ money: true });
money("17000");

console.log(money()); //17000
console.log(money.formatted()); //$17,000.00
```

You can also use it to set formatted money as a value. This is useful for binding user-editable text boxes to the `formatted` computed.

```js
money.formatted("$17,000.56");
console.log(money()); //17000.56
```

---
_Source: https://npm.io/package/knockout.money · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
