Javascript download string as file

You can find simple examples of using the chrome.downloads API in the string, url. The URL to download. string, (optional) filename. A file path relative to the