
ALT How is tsx different from ts-node? They're both tools to run TypeScript files. But tsx does a lot more to improve the experience of using Node.js. tsx just works. It's zero-config and doesn't require tsconfig.json to get started, making it easy for users that just want to run TypeScript code and not get caught up in the configuration. It's a single binary with no peer-dependencies (e.g. TypeScript or esbuild), so there is no setup necessary, enabling usage that is elegant and frictionless for first-time users: npx tsx ./script.ts tsx is zero-config because it has smart detections built in. As a runtime, it detects what's imported to make many options in tsconfig.json redundant—which was designed for compiling matching files regardless of whether they're imported. It seamlessly adapts between CommonJS and ESM package types by detecting how modules are loaded (require() or import) to determine how to compile them. It even adds support for require()ing ESM modules from CommonJS

ALT In short, all of us experience the day in three stages a peak, a trough, and a rebound. And about three-quarters of us (larks and third birds) experience it in that order. But about one in four people, those whose genes or age make them night owls, experience the day in something closer to the reverse order— recovery, trough, peak. When Daniel H. Pink




























