idea-toolbox
Advanced tools
Comparing version 0.1.9 to 0.2.0
18
index.js
@@ -12,3 +12,5 @@ 'use strict'; | ||
// MAILGUN | ||
mailgunSendEmail | ||
mailgunSendEmail, | ||
// OTHER | ||
ISODateToItalianFormat | ||
} | ||
@@ -207,2 +209,14 @@ | ||
}, (err, body) => { cb(err) }); | ||
} | ||
} | ||
/// | ||
/// OTHER | ||
/// | ||
/** | ||
* Convert an ISODate string to the Italian format | ||
* @param {*} ISODateString new Date().toISOString(); | ||
*/ | ||
function ISODateToItalianFormat(ISODateString) { | ||
return `${ISODateString.slice(8, 10)}/${ISODateString.slice(5, 7)}/${ISODateString.slice(0, 4)}`; | ||
} |
{ | ||
"name": "idea-toolbox", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
10962
204