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.4.0 to 3.5.0

__tests__/en-NP.test.ts

7

CHANGELOG.md

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

## [3.5.0](https://github.com/mastermunj/to-words/compare/v3.4.0...v3.5.0) (2023-02-27)
### Features
* **locale:** add support for en-NP locale ([c66759a](https://github.com/mastermunj/to-words/commit/c66759a0ffdc8411cdaec5c8dcfcf382cb90fa27))
## [3.4.0](https://github.com/mastermunj/to-words/compare/v3.3.2...v3.4.0) (2023-01-17)

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

3

dist/ToWords.js

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

const en_NG_1 = __importDefault(require("./locales/en-NG"));
const en_NP_1 = __importDefault(require("./locales/en-NP"));
const en_US_1 = __importDefault(require("./locales/en-US"));

@@ -58,2 +59,4 @@ const en_GB_1 = __importDefault(require("./locales/en-GB"));

return en_NG_1.default;
case 'en-NP':
return en_NP_1.default;
case 'en-US':

@@ -60,0 +63,0 @@ return en_US_1.default;

26

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

@@ -44,12 +44,12 @@ "keywords": [

"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@types/jest": "^29.2.5",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@types/jest": "^29.4.0",
"@types/lodash": "^4.14.191",
"@types/node": "^18.11.18",
"@types/node": "^18.14.2",
"@types/source-map-support": "^0.5.6",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.32.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",

@@ -60,7 +60,7 @@ "eslint-plugin-import": "^2.27.5",

"husky": "^8.0.3",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"jest": "^29.4.3",
"lint-staged": "^13.1.2",
"lodash": "^4.17.21",
"prettier": "^2.8.3",
"rimraf": "^4.1.0",
"prettier": "^2.8.4",
"rimraf": "^4.1.2",
"sort-package-json": "^1.57.0",

@@ -70,3 +70,3 @@ "source-map-support": "^0.5.21",

"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
"typescript": "^4.9.5"
},

@@ -73,0 +73,0 @@ "engines": {

@@ -116,2 +116,3 @@ # Number to Words

| Nigeria | English | en-NG |
| Nepal | English | en-NP |
| USA | English | en-US |

@@ -118,0 +119,0 @@ | Iran | Persian | fa-IR |

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

import enNg from './locales/en-NG';
import enNp from './locales/en-NP';
import enUs from './locales/en-US';

@@ -59,2 +60,4 @@ import enGb from './locales/en-GB';

return enNg;
case 'en-NP':
return enNp;
case 'en-US':

@@ -61,0 +64,0 @@ return enUs;

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