Comparing version 1.0.0 to 1.0.1
@@ -9,3 +9,3 @@ module.exports = (num) => { | ||
if (isNaN(num)) { | ||
return `"${num}" is not a number.` | ||
return `'${num}' is not a number.` | ||
} | ||
@@ -17,3 +17,3 @@ | ||
if (num < -999999999999998) { | ||
if (num < -9999999999999998) { | ||
return `This number is too large to maintain accuracy.` | ||
@@ -20,0 +20,0 @@ } |
@@ -6,3 +6,3 @@ const test = require('./commatic.js') | ||
const NaNInputs = test('Hello') | ||
if (NaNInputs !== '"Hello" is not a number.') { | ||
if (NaNInputs !== "'Hello' is not a number.") { | ||
throw new Error('Commatic is not recognizing non numbers') | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "commatic", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Commatic is a lightweight comma delimiter for formatting numbers into standard form periods. Everyone needs one of these.", | ||
@@ -5,0 +5,0 @@ "main": "commatic.js", |
# Commatic | ||
_Commatic_ is a lightweight comma delimiter for formatting numbers into standard form periods. Everyone needs one of these. | ||
<img src="https://user-images.githubusercontent.com/45696445/67348320-8456ac80-f512-11e9-9e33-d8b91b7fd283.gif"> | ||
_________________________ | ||
@@ -7,0 +7,0 @@ ## API |
5280