Detect user country by IP in Node.js
It shouldn’t be hard to detect a user’s country based on the IP address, right? Right… I really liked the simplicity of ip2location
module: load the BIN file, get the location, and close the BIN file.
It shouldn’t be hard to detect a user’s country based on the IP address, right? Right… I really liked the simplicity of ip2location
module: load the BIN file, get the location, and close the BIN file.
One of the easiest ways to convert all JPG and PNG images in a folder to WEBP and AVIF is to use the Sharp library.
…Convert all JPGs and PNGs in a folder to WEBP and AVIF with Node.js and SharpRead More »
FFmpeg is an awesome tool that can convert not only videos but also audio and images.
…What if I tell you you can convert bytes to petabytes without doing a loop and constantly dividing by 1024?
…Convert bytes to megabytes, gigabytes, terabytes without a loop.Read More »
You can convert HTML and CSS to SVG directly in a browser. With JavaScript. And JSX.
…