file
The file command can be used to determine the type of a file.
$ file createTIL.js createTIL.js: a /usr/bin/env node script text executable, ASCII text
See man file for more info.
man file