js-file-download

Javascript function that triggers browser to save javascript-generated content to a file

mmmagic

An async libmagic binding for node.js for detecting content types by data inspection