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

to-words

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-words - npm Package Compare versions

Comparing version 2.2.5 to 2.3.0

__tests__/en-MM.test.ts

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [2.3.0](https://github.com/mastermunj/to-words/compare/v2.2.5...v2.3.0) (2020-11-20)
### Features
* add support for en-MM ([b48eade](https://github.com/mastermunj/to-words/commit/b48eade05b0b0272443ecf89acf6004c0d3f18aa))
### [2.2.5](https://github.com/mastermunj/to-words/compare/v2.2.4...v2.2.5) (2020-11-08)

@@ -7,0 +14,0 @@

2

dist/to-words.js

@@ -23,2 +23,4 @@ "use strict";

return require('./locales/en-IN').Locale;
case 'en-MM':
return require('./locales/en-MM').Locale;
case 'en-MU':

@@ -25,0 +27,0 @@ return require('./locales/en-MU').Locale;

8

package.json
{
"name": "to-words",
"version": "2.2.5",
"version": "2.3.0",
"description": "Converts numbers (including decimal points) into words & currency.",

@@ -33,3 +33,3 @@ "keywords": [

"release:mock": "npm run release -- --dry-run",
"test": "jest --detectOpenHandles --coverage",
"test": "jest --detectOpenHandles --coverage --no-cache",
"test:watch": "npm run test -- --watch"

@@ -65,5 +65,5 @@ },

"lodash": "^4.17.15",
"prettier": "^2.0.5",
"prettier": "^2.2.0",
"rimraf": "^3.0.2",
"sort-package-json": "^1.46.1",
"sort-package-json": "^1.48.0",
"source-map-support": "^0.5.19",

@@ -70,0 +70,0 @@ "standard-version": "^9.0.0",

@@ -87,3 +87,3 @@ # Number to Words

| ------------- | ------------- | ------------- | ------------- |
| localeCode | string | 'en-IN' | Locale code for selecting i18n.<br/>Supported Locale: `en-IN`, `en-MU`, `en-US` and `fa-IR`.<br/>Please open PR if more needed. |
| localeCode | string | 'en-IN' | Locale code for selecting i18n. |
| currency | boolean | false | Whether the number to be converted into words written as currency.<br/>*Note: When currency:true, number will be rounded off to two decimals before converting to words* |

@@ -93,4 +93,10 @@ | ignoreDecimal | boolean | false | Whether to ignore fractional unit of number while converting into words. |

## Supported Locale
* en-IN (default)
* en-MM
* en-MU
* en-US
* fa-IR
## Inspiration for core logic
[https://stackoverflow.com/a/46221860](https://stackoverflow.com/a/46221860)

@@ -43,2 +43,4 @@ import { LocaleInterface } from './locales/locale.interface';

return require('./locales/en-IN').Locale;
case 'en-MM':
return require('./locales/en-MM').Locale;
case 'en-MU':

@@ -45,0 +47,0 @@ return require('./locales/en-MU').Locale;

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