# number2currency

> Convert number into words

Latest version **1.0.2** (published 2021-02-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install number2currency
pnpm add number2currency
yarn add number2currency
bun add number2currency
```

## 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 | 1.0.2 |
| Published | 2021-02-05 |
| First published | 2021-02-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | AJ |
| Maintainers | aarul.j |
| Keywords | n2w, number, to, word, number, 2, words |

## Links

- npm: https://www.npmjs.com/package/number2currency
- npm.io page: https://npm.io/package/number2currency

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2021-02-05
- 1.0.1 — 2021-02-04
- 0.0.1 — 2021-02-04

## README

[![NPM](https://nodei.co/npm/number2currency.png)](https://nodei.co/npm/number2currency/)

# Number To currency or Words
Contains some util methods for converting numbers into words and currency type INR


### Install
`npm install number2currency`


### API

#### `toWords(number)`
Converts an integer into a string with words.
If number is decimal, the decimals will be removed.
```js
var converter = require('number2currency');
converter.toWords(21); // => “twenty one”
```

#### `toWords(string)`
Converts string into words.
If number is decimal, the decimals will be removed.
```js
var converter = require('number2currency');
converter.toWords('13'); // => “thirteen”

// Decimal numbers:
converter.toWords(2.9); // => “two”

// Large numbers:
converter.toWords(900712003); // => “ninety crore seven lakh twelve thousand three”
```

### Change Log

##### 1.0.0
- Initial release

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