I’m coding Node.js and creating a lot of .js files. I want ‘use strict’; to appear at the top of every .js file.
When I create a file in Sublime Text I select File|New File and then save it as blah.js. Can I set things up so that as soon as the file is saved Sublime Text notices that it’s a .js file and inserts ‘use strict’; at the top of the file?
If not, what’s the most efficient way to get this ubiquitous line onto the top of a new .js file?