util


image post

Detect if a string is a number with regex

Andrés Canavesi - Aug 28, 2020
How to know if a string is a number in JavaScript using a regular expression

image post

Clean up more than two spaces and new lines with regex

A simple JavaScript method that removes all newlines and multiple spaces from a given text
Andrés Canavesi - Aug 28, 2020
A simple JavaScript method that removes all new lines and multiple spaces (including tab spaces) by a single space

image post

Compress a file in Node.js

Andrés Canavesi - Jul 27, 2020
Zip a file in Node.js it's easy using zlib