Export module, add package.json.

This commit is contained in:
Tom MacWright
2013-09-04 21:11:04 -04:00
parent 4966441a34
commit 93cd13cf46
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"
}
}