I used to write "use strict";as the first line in my JavaScript files to enable strict mode. Now I do not want to add this as boilerplate code to over 200 JavaScript files of my current NodeJs package.
Is it possible to force strict mode for all files in my package without forcing it for the dependencies of my package?
EDIT: This has been noted twice as a duplicate of the general question of how to enforce strict mode in node . This is not a duplicate, since this question is much more restrictive: do not force, add lines to each file and do not force, without forcing it for dependencies.
source
share