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.0.0-alpha.0 to 3.0.0

dist/locales/locale.interface.d.ts

11

__tests__/en-GH.test.ts

@@ -87,2 +87,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Cedis`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Negative Integers with options = { currency: true }', () => {

@@ -89,0 +100,0 @@ const testNegativeIntegersWithCurrency = cloneDeep(testIntegers);

@@ -81,2 +81,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Rupees`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Negative Integers with options = { currency: true }', () => {

@@ -83,0 +94,0 @@ const testNegativeIntegersWithCurrency = cloneDeep(testIntegers);

@@ -87,2 +87,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Kyats`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Negative Integers with options = { currency: true }', () => {

@@ -89,0 +100,0 @@ const testNegativeIntegersWithCurrency = cloneDeep(testIntegers);

@@ -81,2 +81,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Rupees`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Negative Integers with options = { currency: true }', () => {

@@ -83,0 +94,0 @@ const testNegativeIntegersWithCurrency = cloneDeep(testIntegers);

@@ -87,2 +87,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Naira`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Negative Integers with options = { currency: true }', () => {

@@ -89,0 +100,0 @@ const testNegativeIntegersWithCurrency = cloneDeep(testIntegers);

@@ -87,2 +87,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Dollars`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Negative Integers with options = { currency: true }', () => {

@@ -89,0 +100,0 @@ const testNegativeIntegersWithCurrency = cloneDeep(testIntegers);

@@ -79,2 +79,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} تومان`;
});
test.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Integers with options = { currency: true, ignoreZeroCurrency: true }', () => {

@@ -81,0 +92,0 @@ const testIntegersWithCurrencyAndIgnoreZeroCurrency = cloneDeep(testIntegers);

@@ -85,2 +85,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} Euros`;
});
test.concurrent.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Integers with options = { currency: true, ignoreZeroCurrency: true }', () => {

@@ -87,0 +98,0 @@ const testIntegersWithCurrencyAndIgnoreZeroCurrency = cloneDeep(testIntegers);

@@ -73,2 +73,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} રૂપિયા`;
});
test.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Integers with options = { currency: true, ignoreZeroCurrency: true }', () => {

@@ -75,0 +86,0 @@ const testIntegersWithCurrencyAndIgnoreZeroCurrency = cloneDeep(testIntegers);

@@ -73,2 +73,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} रुपये`;
});
test.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Integers with options = { currency: true, ignoreZeroCurrency: true }', () => {

@@ -75,0 +86,0 @@ const testIntegersWithCurrencyAndIgnoreZeroCurrency = cloneDeep(testIntegers);

@@ -75,2 +75,13 @@ import { cloneDeep } from 'lodash';

describe('Test Integers with options = { currency: true, doNotAddOnly: true }', () => {
const testIntegersWithCurrency = cloneDeep(testIntegers);
testIntegersWithCurrency.map((row) => {
row[1] = `${row[1]} रुपये`;
});
test.each(testIntegersWithCurrency)('convert %d => %s', (input, expected) => {
expect(toWords.convert(input as number, { currency: true, doNotAddOnly: true })).toBe(expected);
});
});
describe('Test Integers with options = { currency: true, ignoreZeroCurrency: true }', () => {

@@ -77,0 +88,0 @@ const testIntegersWithCurrencyAndIgnoreZeroCurrency = cloneDeep(testIntegers);

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

## [3.0.0](https://github.com/mastermunj/to-words/compare/v2.5.0...v3.0.0) (2021-09-14)
### Features
* refactor and add new languages ([#526](https://github.com/mastermunj/to-words/issues/526)) ([0dc9c10](https://github.com/mastermunj/to-words/commit/0dc9c10d457982ea190fb127bb698f5307b23ffe))
## [3.0.0-alpha.0](https://github.com/mastermunj/to-words/compare/v2.5.0...v3.0.0-alpha.0) (2021-09-04)

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

20

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

@@ -48,6 +48,6 @@ "keywords": [

"@types/lodash": "^4.14.172",
"@types/node": "^16.7.1",
"@types/node": "^16.9.1",
"@types/source-map-support": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"cz-conventional-changelog": "^3.3.0",

@@ -59,13 +59,13 @@ "eslint": "^7.32.0",

"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"husky": "^7.0.2",
"jest": "^27.2.0",
"lint-staged": "^11.1.2",
"lodash": "^4.17.21",
"prettier": "^2.3.2",
"prettier": "^2.4.0",
"rimraf": "^3.0.2",
"sort-package-json": "^1.50.0",
"source-map-support": "^0.5.19",
"sort-package-json": "^1.51.0",
"source-map-support": "^0.5.20",
"standard-version": "^9.3.1",
"ts-jest": "^27.0.5",
"typescript": "^4.3.5"
"typescript": "^4.4.3"
},

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

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