idea-toolbox
Advanced tools
Comparing version 0.4.4 to 0.5.0
12
index.js
'use strict'; | ||
const AWS = require('aws-sdk'); // there's not need to add it in the package.json | ||
const AWS = require('aws-sdk'); | ||
const UUIDV4 = require('uuid/v4'); | ||
@@ -20,3 +20,3 @@ | ||
// OTHER | ||
ISODateToItalianFormat | ||
ISODateToItalianFormat, cleanStr | ||
} | ||
@@ -265,1 +265,9 @@ | ||
} | ||
/** | ||
* Clean a string to use it within filenames and so. | ||
* @param {*} str the string to clean | ||
*/ | ||
function cleanStr(str) { | ||
return (str || '').toLowerCase().replace(/[^a-zA-Z0-9]+/g, '-'); | ||
} |
{ | ||
"name": "idea-toolbox", | ||
"version": "0.4.4", | ||
"version": "0.5.0", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "engines": { |
13932
282