Javascript module that converts JSON into CSV with column titles and proper line endings. Can be used as a module and from the command line.