Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "gematriya", | ||
"main": "index.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"authors": [ | ||
@@ -6,0 +6,0 @@ "Scimonster <tehalmightyscimonster@gmail.com>" |
@@ -78,3 +78,3 @@ /* | ||
if (str) { | ||
return numbers[n] < numbers[num[i - 1]] && numbers[n] < 100 ? numbers[n] * 1000 : numbers[n]; | ||
return limit && numbers[n] < numbers[num[i - 1]] && numbers[n] < 100 ? numbers[n] * 1000 : numbers[n]; | ||
} else { | ||
@@ -110,2 +110,2 @@ if (parseInt(n, 10) * Math.pow(10, i) > 1000) { | ||
} | ||
})(); | ||
})(); |
{ | ||
"name": "gematriya", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Eyal Schachter (https://github.com/Scimonster)", | ||
@@ -19,2 +19,2 @@ "description": "Convert numbers to gematriya representation, and vice-versa.", | ||
} | ||
} | ||
} |
@@ -22,2 +22,4 @@ # Gematriya | ||
When passing a string, by default, it just adds up the numbers, regardless of place. By passing `true` as a second parameter, it will treat it as being ordered, as per the output (see below). | ||
When passing a number, a second parameter is available, `limit`. This will limit the length of the returned string to a number of digits. For example: | ||
@@ -33,2 +35,2 @@ | ||
MIT | ||
Licensed MIT. |
6108
121
35