Introduction
fileWriter tool base on web browser by using HTML5 interface(download attr), support mostly modern browser including IE 10+
Install
npm install file-writer
Usage example
;
And then the browser will pop a download dialog with filename 'a.csv'.
API
.writer(filename = 'file', content, encode = 'utf-8')
: content will be encoded as binary automaticly; you'r recommended to supply fileName with extension.
Contributing
We welcome all contributions, please submit any ideas as pull requests or as a GitHub issue.
Licence
MIT