Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

num-words

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

num-words - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

package.json
{
"name": "num-words",
"version": "1.0.0",
"version": "1.0.1",
"description": "Convert digits to words",

@@ -16,2 +16,6 @@ "main": "index.js",

],
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/salmanm/num-words.git"
},
"author": "salmanmitha@gmail.com",

@@ -18,0 +22,0 @@ "license": "MIT",

@@ -7,3 +7,3 @@ # num-words

```
```javascript
npm i num-words

@@ -14,3 +14,3 @@ ```

```
```javascript
1 -> one

@@ -24,2 +24,10 @@ 12 -> twelve

# Usage
```javascript
const numWords = require('num-words')
const amountInWords = numWords(12345) // twelve thousand three hundred and forty five
```
_Note: This module only supports 9 digits input. A typical usecase for such convertion is in tax invoices or charts etc. For that more than 9 digits input is not very common (and also not very readable)._

@@ -26,0 +34,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc