Home › Node.js Tutorial › Node.js built-in modules
Node.js built-in modules
Tools that come with Node.js.
Core modules need no install: path works with file paths, os reads system information and util offers helpers.
Example code
const path = require("path");
console.log(path.basename("/a/b/file.txt"));
console.log(path.extname("file.txt"));