Today I Learned - Rocky Kev

TIL node modules fs and os

POSTED ON:

TAGS:

Today I learned about the NodeJS OS module and folder structure

Working with folders in Node.js

The Node.js fs core module provides many handy methods you can use to work with folders.

Use-cases:

via Node.js Files

The Node.js os module

This module provides many functions that you can use to retrieve information from the underlying operating system and the computer the program runs on, and interact with it.


Related TILs

Tagged:

TIL what is npm Script

Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

TIL keywords in package.json

Today I learned what keywords are in a package.json file! It's a collection of keywords about a module. Keywords can help identify a package, related modules and software, and concepts.

TIL functional async/await

PLACEHOLDER