ordinal-number-suffix
Advanced tools
Comparing version 0.1.1 to 0.1.2
0.1.2 / 2018-08-09 | ||
================== | ||
* Fix for numbers greater than 100. (#3) | ||
# 0.1.1 | ||
@@ -8,2 +13,2 @@ | ||
- initial release | ||
- initial release |
@@ -21,2 +21,3 @@ | ||
exports.suffix = function (n) { | ||
n %= 100 | ||
return Math.floor(n / 10) === 1 | ||
@@ -23,0 +24,0 @@ ? 'th' |
{ | ||
"name": "ordinal-number-suffix", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "add suffixes to numbers (1st, 33rd, etc.)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
1770
29
4