Omar Dulaimi

Omar Dulaimi @omardulaimi

Location:
Amman, Jordan
Joined:
Jul 20, 2019

Omar Dulaimi
articles - 37 total

Stop losing your breakpoints: Meet Breakpoint Bookmarks for VS Code

If you've ever stopped mid‑debug to chase a different bug, you know the pain: you come back and all...

Learn More 1 0Aug 22

Full JavaScript Internationalization CheatSheet!

Did you know that 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 can do 𝗶𝗻𝘁𝗲𝗿𝗻𝗮𝘁𝗶𝗼𝗻𝗮𝗹𝗶𝘇𝗮𝘁𝗶𝗼𝗻 𝗻𝗮𝘁𝗶𝘃𝗲𝗹𝘆 ? Well, this cheatsheet will help...

Learn More 53 2Aug 21 '22

How to change access and modification times in Nodejs?

A post by Omar Dulaimi

Learn More 2 0Aug 18 '22

How to create symbolic links in Nodejs?

A post by Omar Dulaimi

Learn More 2 0Aug 17 '22

How to copy a file in Nodejs?

A post by Omar Dulaimi

Learn More 1 0Aug 16 '22

How to append contents to a file in Nodejs?

How to append contents to a file in Nodejs? I hope you like the new format, it's so much more...

Learn More 1 0Aug 15 '22

What is the best way to read directories in Nodejs?

Different ways to read directories in Nodejs! Which way do you use? Why? Let me know what you think...

Learn More 4 0Aug 14 '22

How to create unique temporary directories in Nodejs?

𝗡𝗼𝗱𝗲𝗷𝘀 provides an awesome method that lets you create unique temporary directories. This is really...

Learn More 7 2Aug 13 '22

Full ES2022 Cheatsheet!

PDF version here(High Quality):...

Learn More 121 6Aug 13 '22

How to change ownership of a file in Nodejs?

As for our last permissions and access related methods, today we talk about the 𝗰𝗵𝗼𝘄𝗻 method. It...

Learn More 8 0Aug 12 '22

Change file/directory permissions in Nodejs

𝗡𝗼𝗱𝗲𝗷𝘀 let's you set permissions on files/directories just like you do on your Unix systems. I'm...

Learn More 7 0Aug 12 '22

How to properly handle UTF-8 BOM files in Nodejs?

Did you know that 𝗝𝗦𝗢𝗡.𝗽𝗮𝗿𝘀𝗲 will crash when you try to parse a 𝗨𝗧𝗙-𝟴 𝗕𝗢𝗠 encoded string? This...

Learn More 5 0Aug 10 '22

Check user's permissions on file/dir in Nodejs

The 𝗳𝘀𝗣𝗿𝗼𝗺𝗶𝘀𝗲𝘀.𝗮𝗰𝗰𝗲𝘀𝘀 method tests a user's permissions for the file or directory specified by...

Learn More 4 0Aug 9 '22

rm -rf in Nodejs?

With the 𝗳𝘀𝗣𝗿𝗼𝗺𝗶𝘀𝗲𝘀.𝗿𝗺 method you can delete both files and directories. It's modeled on the standard...

Learn More 5 0Aug 9 '22

Watch files/directories changes in Nodejs

The 𝗳𝘀𝗣𝗿𝗼𝗺𝗶𝘀𝗲𝘀.𝘄𝗮𝘁𝗰𝗵 method returns an async iterator that watches for changes on 𝗳𝗶𝗹𝗲𝗻𝗮𝗺𝗲, where...

Learn More 4 0Aug 8 '22

How to achieve backward compatibility in your Nodejs code?

To achieve backward compatibility, sometimes we have to write separate code for different 𝗡𝗼𝗱𝗲𝗷𝘀...

Learn More 5 0Aug 5 '22

Build a String Telephone in Nodejs

I think it's time for a practical fun tip! Did you know you could pipe the standard input stream to...

Learn More 5 0Aug 5 '22

How to measure CPU time in Nodejs?

The 𝗽𝗿𝗼𝗰𝗲𝘀𝘀.𝗰𝗽𝘂𝗨𝘀𝗮𝗴𝗲 method returns the user and system CPU time usage of the current process, in...

Learn More 7 0Aug 4 '22

Natively parse command line args with Nodejs

The 𝗽𝗿𝗼𝗰𝗲𝘀𝘀.𝗮𝗿𝗴𝘃 method lets you natively parse command line arguments, without the need for any...

Learn More 23 4Aug 3 '22

How to locate a hanging Node process?

This must be the best way to locate a hanging process. The 𝗽𝗿𝗼𝗰𝗲𝘀𝘀.𝘁𝗶𝘁𝗹𝗲 property allows you set(and...

Learn More 5 0Aug 2 '22

How to debug like a PRO in Nodejs?

Debug like a PRO with the 𝘂𝘁𝗶𝗹.𝗱𝗲𝗯𝘂𝗴𝗹𝗼𝗴 method. It allows you write conditional debug messages to...

Learn More 4 0Aug 1 '22

How to deprecate functions in Nodejs?

Did you know that the 𝗡𝗼𝗱𝗲𝗷𝘀 𝘂𝘁𝗶𝗹 module lets you deprecate functions and classes? The...

Learn More 4 0Aug 1 '22

Pure Nodejs Logger

Did you know that the 𝗡𝗼𝗱𝗲𝗷𝘀 console module provides a 𝗖𝗼𝗻𝘀𝗼𝗹𝗲 class, unlike the browser? This is...

Learn More 2 0Jul 30 '22

What are 𝗳𝗶𝗹𝗲 𝗱𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗼𝗿𝘀 in 𝗡𝗼𝗱𝗲𝗷𝘀?

What are 𝗳𝗶𝗹𝗲 𝗱𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗼𝗿𝘀 in 𝗡𝗼𝗱𝗲𝗷𝘀? In my last post we talked about all the different ways you can...

Learn More 3 0Jul 28 '22

Different ways to log messages in Nodejs

How many ways do you know ? According to my little research, there are 3 different ways you can log...

Learn More 5 0Jul 27 '22

Logging navigable trees in Javascript

To produce navigable trees from any Javascript object, use 𝗰𝗼𝗻𝘀𝗼𝗹𝗲.𝗱𝗶𝗿. You will get an interactive...

Learn More 1 0Jul 25 '22

Advanced logging in Javascript

For advanced logging, use 𝗰𝗼𝗻𝘀𝗼𝗹𝗲.𝗴𝗿𝗼𝘂𝗽. It allows you create nested logging groups, with each group...

Learn More 6 0Jul 23 '22

Prefix-only modules in Nodejs 18

Nodejs 18 comes with the 𝗻𝗼𝗱𝗲: prefix to import modules from the core modules. Conventional modules...

Learn More 4 0Jun 4 '22

Nodejs OS Module Cheetsheet

Complete Nodejs 🅾🆂 Module Cheetsheet 🔥🔥🔥 The 𝗼𝘀 module provides operating system-related utility...

Learn More 8 0Jun 4 '22

How to create a JSON server from your Prisma schema?

The library called json-server allows you to quickly run a REST API server from just a small JSON...

Learn More 7 0May 27 '22