Merge pull request #43 from tmcw/package

Export module, add package.json.
This commit is contained in:
Eli Grey
2013-09-04 23:30:31 -07:00
2 changed files with 25 additions and 0 deletions
+2
View File
@@ -214,3 +214,5 @@ var saveAs = saveAs
view.addEventListener("unload", process_deletion_queue, false);
return saveAs;
}(self));
if (typeof module !== 'undefined') module.exports = saveAs;
+23
View File
@@ -0,0 +1,23 @@
{
"name": "FileSaver.js",
"version": "0.0.0",
"description": "A saveAs() FileSaver implementation",
"main": "FileSaver.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/eligrey/FileSaver.js.git"
},
"keywords": [
"filesaver",
"saveas",
"blob"
],
"author": "Eli Grey",
"license": "MIT/X11",
"bugs": {
"url": "https://github.com/eligrey/FileSaver.js/issues"
}
}