JavaScript: Create and save file

A very minor improvement of the code by Awesomeness01 (no need for anchor tag) with addition as suggested by trueimage (support for IE): Tested to be working properly in Chrome, FireFox and IE10. In Safari, the data gets opened in a new tab and one would have to manually save this file.

What is the difference between –save and –save-dev?

The difference between –save and –save-dev may not be immediately noticeable if you have tried them both on your own projects. So here are a few examples… Let’s say you were building an app that used the moment package to parse and display dates. Your app is a scheduler so it really needs this package to run, as in: cannot run without … Read more