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

any-number-to-words

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-number-to-words - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

cjs/engine.js

18

package.json
{
"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;
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