Skip to content

Commit

Permalink
repackaged with each global as its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal committed Jul 15, 2011
1 parent f19fe96 commit 1cd3509
Show file tree
Hide file tree
Showing 23 changed files with 179 additions and 37 deletions.
5 changes: 5 additions & 0 deletions lib/Blob/Blob.js
@@ -0,0 +1,5 @@
//
// Blob
//
// http://www.w3.org/TR/FileAPI/#dfn-Blob
// TODO
12 changes: 12 additions & 0 deletions lib/Blob/package.json
@@ -0,0 +1,12 @@
{
"name" : "Blob",
"description" : "HTML5 FileAPI `Blob` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "Blob"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "Blob.js",
"version" : "0.10.0"
}
5 changes: 5 additions & 0 deletions lib/BlobBuilder/BlobBuilder.js
@@ -0,0 +1,5 @@
//
// BlobBuilder
//
// http://www.w3.org/TR/file-writer-api/#idl-def-BlobBuilder
// TODO
12 changes: 12 additions & 0 deletions lib/BlobBuilder/package.json
@@ -0,0 +1,12 @@
{
"name" : "BlobBuilder",
"description" : "HTML5 FileAPI `BlobBuilder` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "BlobBuilder"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "BlobBuilder.js",
"version" : "0.10.0"
}
3 changes: 0 additions & 3 deletions lib/file.js → lib/File/File.js
Expand Up @@ -3,7 +3,6 @@
//
// http://www.w3.org/TR/FileAPI/#dfn-file
// https://developer.mozilla.org/en/DOM/File
var provide = provide || function () {};
(function () {
"use strict";

Expand Down Expand Up @@ -60,6 +59,4 @@ var provide = provide || function () {};
}

module.exports = File;

provide('file-api/file');
}());
13 changes: 13 additions & 0 deletions lib/File/package.json
@@ -0,0 +1,13 @@
{
"name" : "File",
"description" : "HTML5 FileAPI `File` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "file"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
"mime": ">= 0.0.0"
},
"main" : "File.js",
"version" : "0.10.0"
}
File renamed without changes.
12 changes: 12 additions & 0 deletions lib/FileError/package.json
@@ -0,0 +1,12 @@
{
"name" : "FileError",
"description" : "HTML5 FileAPI `FileError` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FileError"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "FileError.js",
"version" : "0.10.0"
}
3 changes: 0 additions & 3 deletions lib/file-list.js → lib/FileList/FileList.js
Expand Up @@ -3,7 +3,6 @@
//
// http://www.w3.org/TR/FileAPI/#dfn-filelist
// https://developer.mozilla.org/en/DOM/FileList
var provide = provide || function () {};
(function () {
"use strict";

Expand Down Expand Up @@ -34,6 +33,4 @@ var provide = provide || function () {};
};

module.exports = FileList;

provide('file-api/file-list');
}());
12 changes: 12 additions & 0 deletions lib/FileList/package.json
@@ -0,0 +1,12 @@
{
"name" : "FileList",
"description" : "HTML5 FileAPI `FileList` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FileList"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "FileList.js",
"version" : "0.10.0"
}
3 changes: 0 additions & 3 deletions lib/file-reader.js → lib/FileReader/FileReader.js
Expand Up @@ -3,7 +3,6 @@
//
// http://www.w3.org/TR/FileAPI/#dfn-filereader
// https://developer.mozilla.org/en/DOM/FileReader
var provide = provide || function () {};
(function () {
"use strict";

Expand Down Expand Up @@ -294,6 +293,4 @@ var provide = provide || function () {};
}

module.exports = FileReader;

provide('file-api/file-list');
}());
13 changes: 13 additions & 0 deletions lib/FileReader/package.json
@@ -0,0 +1,13 @@
{
"name" : "FileReader",
"description" : "HTML5 FileAPI `FileReader` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FileReader"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
"noop": ">= 0.0.0"
},
"main" : "FileReader.js",
"version" : "0.10.0"
}
5 changes: 5 additions & 0 deletions lib/FileSaver/FileSaver.js
@@ -0,0 +1,5 @@
//
// FileSaver
//
// http://www.w3.org/TR/file-writer-api/#idl-def-FileSaver
// TODO
12 changes: 12 additions & 0 deletions lib/FileSaver/package.json
@@ -0,0 +1,12 @@
{
"name" : "FileSaver",
"description" : "HTML5 FileAPI `FileSaver` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FileSaver"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "FileSaver.js",
"version" : "0.10.0"
}
5 changes: 5 additions & 0 deletions lib/FileWriter/FileWriter.js
@@ -0,0 +1,5 @@
//
// FileWriter
//
// http://www.w3.org/TR/file-writer-api/#idl-def-FileWriter
// TODO
12 changes: 12 additions & 0 deletions lib/FileWriter/package.json
@@ -0,0 +1,12 @@
{
"name" : "FileWriter",
"description" : "HTML5 FileAPI `FileWriter` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FileWriter"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "FileWriter.js",
"version" : "0.10.0"
}
5 changes: 5 additions & 0 deletions lib/FileWriterSync/FileWriterSync.js
@@ -0,0 +1,5 @@
//
// FileWriterSync
//
// http://www.w3.org/TR/file-writer-api/#idl-def-FileWriterSync
// TODO
12 changes: 12 additions & 0 deletions lib/FileWriterSync/package.json
@@ -0,0 +1,12 @@
{
"name" : "FileWriterSync",
"description" : "HTML5 FileAPI `FileWriterSync` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FileWriterSync"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
},
"main" : "FileWriterSync.js",
"version" : "0.10.0"
}
7 changes: 2 additions & 5 deletions lib/form-data.js → lib/FormData/FormData.js
Expand Up @@ -3,7 +3,6 @@
//
// http://hacks.mozilla.org/2010/05/formdata-interface-coming-to-firefox/
//
var provide = provide || function () {};
(function () {
"use strict";

Expand All @@ -12,8 +11,8 @@ var provide = provide || function () {};

var EventEmitter = require('events').EventEmitter,
Futures = require('futures'),
File = require('./file'),
FileReader = require('./file-reader');
File = require('File'),
FileReader = require('FileReader');

function isFile(o) {
return (o instanceof File) ||
Expand Down Expand Up @@ -231,6 +230,4 @@ var provide = provide || function () {};
}

module.exports = FormData;

provide('file-api/form-data');
}());
17 changes: 17 additions & 0 deletions lib/FormData/package.json
@@ -0,0 +1,17 @@
{
"name" : "FormData",
"description" : "HTML5 FileAPI `FormData` for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api", "FormData"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
"bufferjs": ">= 0.0.0"
, "remedial": ">= 0.0.0"
, "futures": ">= 2.0.0"
, "File": ">= 0.0.0"
, "FileReader": ">= 0.0.0"
},
"main" : "FormData.js",
"version" : "0.10.0"
}
13 changes: 5 additions & 8 deletions lib/index.js → lib/file-api/index.js
@@ -1,16 +1,15 @@
//
// HTML5 File API
// http://www.w3.org/TR/FileAPI
var provide = provide || function () {};
(function () {
"use strict";

var FileApi = module.exports = {
File: require('./file'),
FileList: require('./file-list'),
//FileError: require('./file-error'),
FileReader: require('./file-reader'),
FormData: require('./form-data')
File: require('File')
, FileList: require('FileList')
//, FileError: require('FileError')
, FileReader: require('FileReader')
, FormData: require('FormData')
};

FileApi.isFile = function (obj) {
Expand All @@ -34,6 +33,4 @@ var provide = provide || function () {};
}
return false;
};

provide('file-api');
}());
20 changes: 20 additions & 0 deletions lib/file-api/package.json
@@ -0,0 +1,20 @@
{
"name" : "file-api",
"description" : "HTML5 FileAPI for Node.JS.",
"url" : "http://github.com/coolaj86/node-file-api/",
"keywords" : ["html5", "jsdom", "file-api"],
"author" : "AJ ONeal <coolaj86@gmail.com>",
"contributors" : [],
"dependencies" : {
"bufferjs": "> 0.2.0"
, "noop": ">= 0.1.0"
, "futures": ">= 1.9.4"
, "File": ">= 0.10.0"
, "FileList": ">= 0.10.0"
, "FileError": ">= 0.10.0"
, "FileReader": ">= 0.10.0"
, "FormData": ">= 0.10.0"
},
"main" : "./index",
"version" : "0.10.0"
}
15 changes: 0 additions & 15 deletions lib/package.json

This file was deleted.

0 comments on commit 1cd3509

Please sign in to comment.