jsFormat does not format code if the file is not saved (temporary new file for instance). It throws the following warning instead
Formatting 'false' files is not yet supported.
I find Atom pretty convenient to quickly format a code snipped, without needing to save a file, so this feature could be useful.