Sanitize string for use as filename
Check installed versions of node and npm
Truncate string to length in bytes
ES2015 (ES6) Number.isInteger polyfill