any-number-to-words
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "any-number-to-words", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "A string based number to word converter that can convert pretty large numbers to words in several locales. String is it's limit.", | ||
"main": "index.js", | ||
"main": "cjs/index.js", | ||
"module": "src/index.js", | ||
"scripts": { | ||
"test": "echo \"No test specified\"" | ||
"test": "echo \"No test specified\"", | ||
"clean": "shx rm -rf cjs", | ||
"build": "npm run clean && babel src -d cjs", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -28,3 +32,9 @@ "keywords": [ | ||
}, | ||
"homepage": "https://github.com/ashutoshbw314/any-number-to-words/tree/main#readme" | ||
"homepage": "https://github.com/ashutoshbw314/any-number-to-words/tree/main#readme", | ||
"devDependencies": { | ||
"@babel/cli": "^7.13.16", | ||
"@babel/plugin-transform-modules-commonjs": "^7.14.0", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
"shx": "^0.3.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
class Engine { | ||
export default class { | ||
constructor(settings) { | ||
@@ -70,3 +70,1 @@ this.settings = settings; | ||
} | ||
module.exports = Engine; |
@@ -1,2 +0,2 @@ | ||
module.exports = { | ||
export default { | ||
names: { | ||
@@ -3,0 +3,0 @@ zeroTo99: ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty", "twenty-one", "twenty-two", "twenty-three", "twenty-four", "twenty-five", "twenty-six", "twenty-seven", "twenty-eight", "twenty-nine", "thirty", "thirty-one", "thirty-two", "thirty-three", "thirty-four", "thirty-five", "thirty-six", "thirty-seven", "thirty-eight", "thirty-nine", "forty", "forty-one", "forty-two", "forty-three", "forty-four", "forty-five", "forty-six", "forty-seven", "forty-eight", "forty-nine", "fifty", "fifty-one", "fifty-two", "fifty-three", "fifty-four", "fifty-five", "fifty-six", "fifty-seven", "fifty-eight", "fifty-nine", "sixty", "sixty-one", "sixty-two", "sixty-three", "sixty-four", "sixty-five", "sixty-six", "sixty-seven", "sixty-eight", "sixty-nine", "seventy", "seventy-one", "seventy-two", "seventy-three", "seventy-four", "seventy-five", "seventy-six", "seventy-seven", "seventy-eight", "seventy-nine", "eighty", "eighty-one", "eighty-two", "eighty-three", "eighty-four", "eighty-five", "eighty-six", "eighty-seven", "eighty-eight", "eighty-nine", "ninety", "ninety-one", "ninety-two", "ninety-three", "ninety-four", "ninety-five", "ninety-six", "ninety-seven", "ninety-eight", "ninety-nine"], |
@@ -1,2 +0,2 @@ | ||
function parseNumberString(str) { | ||
export function parseNumberString(str) { | ||
const numberPattern = /^(?<sign>[+\-])?(?<number>\d+(\.\d*)?|\.\d+)([eE](?<exponent>[+\-]?\d+))?$/; | ||
@@ -38,2 +38,1 @@ const match = str.match(numberPattern); | ||
exports.parseNumberString = parseNumberString; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
28395
15
545
1
4
1