Q1: What is the method for defining the path when using the saveAs() function in JavaScript?
After downloading a file, I want to be able to specify a path like:
C:\Users\file-\projectName\src\assets\i18n\en.json
const blob = new Blob([data], {type : 'application/json'});
saveAs( blob , 'en.json');
Q2: How can I save data in the same file after downloading it?
For example:
saveAs( blob , 'en.json');// new file
save( blob , 'en.json'); // same file