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 3.1.1 to 3.2.0

__tests__/nl-SR.test.ts

7

CHANGELOG.md

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

## [3.2.0](https://github.com/mastermunj/to-words/compare/v3.1.1...v3.2.0) (2022-04-16)
### Features
* **language:** added support for dutch nl-SR language and currency ([#805](https://github.com/mastermunj/to-words/issues/805)) ([4ac84c3](https://github.com/mastermunj/to-words/commit/4ac84c3c53093838b8787c0f3d1749c127204d9f))
### [3.1.1](https://github.com/mastermunj/to-words/compare/v3.1.0...v3.1.1) (2022-03-28)

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

3

dist/ToWords.js

@@ -21,2 +21,3 @@ "use strict";

const tr_TR_1 = __importDefault(require("./locales/tr-TR"));
const nl_SR_1 = __importDefault(require("./locales/nl-SR"));
exports.DefaultConverterOptions = {

@@ -69,2 +70,4 @@ currency: false,

return tr_TR_1.default;
case 'nl-SR':
return nl_SR_1.default;
}

@@ -71,0 +74,0 @@ /* eslint-enable @typescript-eslint/no-var-requires */

20

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

@@ -47,18 +47,18 @@ "keywords": [

"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.180",
"@types/node": "^17.0.23",
"@types/lodash": "^4.14.181",
"@types/node": "^17.0.24",
"@types/source-map-support": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"@typescript-eslint/parser": "^5.19.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.12.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.1.4",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
"lint-staged": "^12.3.8",
"lodash": "^4.17.21",
"prettier": "^2.6.1",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",

@@ -65,0 +65,0 @@ "sort-package-json": "^1.55.0",

@@ -98,17 +98,19 @@ # Number to Words

| Bangladesh | English | en-BD |
| France | French | fr-FR |
| UK | English | en-GB |
| Ghana | English | en-GH |
| India | English | en-IN (default) |
| Myanmar | English | en-MM |
| Mauritius | English | en-MU |
| Nigeria | English | en-NG |
| USA | English | en-US |
| Iran | Persian | fa-IR |
| France | French | fr-FR |
| India | Gujarati | gu-IN |
| India | Hindi | hi-IN |
| India | Marathi | mr-IN |
| Iran | Persian | fa-IR |
| Mauritius | English | en-MU |
| Myanmar | English | en-MM |
| Nigeria | English | en-NG |
| Suriname | Dutch | nl-SR |
| Turkey | Turkish | tr-TR |
| UK | English | en-GB |
| USA | English | en-US |
## Inspiration for core logic
[https://stackoverflow.com/a/46221860](https://stackoverflow.com/a/46221860)

@@ -16,2 +16,3 @@ import { ConstructorOf, ConverterOptions, LocaleInterface, NumberWordMap, ToWordsOptions } from './types';

import trTr from './locales/tr-TR';
import nlSr from './locales/nl-SR';

@@ -70,2 +71,4 @@ export const DefaultConverterOptions: ConverterOptions = {

return trTr;
case 'nl-SR':
return nlSr;
}

@@ -72,0 +75,0 @@ /* eslint-enable @typescript-eslint/no-var-requires */

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