Could not find this answer anywhere, but I did find several mailing lists where this was discussed, these are rather old however and I have no idea if this is implemented or
You can also use
https://npmjs.org/package/use-strict
that is, write once
require('use-strict')
or even take a step forward and use
https://npmjs.org/package/node-strict
Please note that use-strict
will turn on strict more on every module required after invocation.
If you prefer a not invasive approach, I wrote another module
https://www.npmjs.org/package/strict-mode
which enables strict mode only in your package. I think that is more a "Do What I Mean" solution.