Is there anyway to force using strict mode in Node.js?

Technology CommunityCategory: JavaScriptIs there anyway to force using strict mode in Node.js?
VietMX Staff asked 3 years ago

you can place

"use strict";

at the top of your file in node >= 0.10.7, but if you want your whole app to run in strict (including external modules) you can do this

node --use_strict