Skip to content

Commit

Permalink
Backwards compatibility with pre-1.0 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
beatgammit committed Jun 27, 2011
1 parent b4e6946 commit efe83a6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -12,7 +12,7 @@ Example

Tar:

var Tar = require('tar-async/tar'), // or require('tar-async').Tar
var Tar = require('tar-async'), // or require('tar-async').Tar or require('tar-async/tar')
tape = new Tar({output: require('fs').createWriteStream('out.tar')});

tape.append('test.txt', 'Woohoo!! Tar me up Scotty!', function () {
Expand Down
8 changes: 4 additions & 4 deletions lib/index.js
@@ -1,8 +1,8 @@
(function () {
'use strict';

module.exports = {
Tar: require('./tar'),
Untar: require('./untar')
};
module.exports = require('./tar');

module.exports.Tar = require('./tar');
module.exports.Untar = require('./untar');
}());
4 changes: 2 additions & 2 deletions lib/package.json
Expand Up @@ -2,8 +2,8 @@
"author": "T. Jameson Little <t.jameson.little@gmail.com>",
"name": "tar-async",
"description": "Asynchronous tar and untar",
"keywords": ["tar", "asynchronous", "stream", "async"],
"version": "1.0.0",
"keywords": ["tar", "untar", "asynchronous", "stream", "async", "chunk", "chunked"],
"version": "1.0.1",
"repository": {
"type": "git",
"url": "git://github.com/beatgammit/tar-async.git"
Expand Down
2 changes: 1 addition & 1 deletion test/tar.js
Expand Up @@ -3,7 +3,7 @@
'use strict';

var fs = require('fs'),
Tar = require('tar-async/tar'),
Tar = require('tar-async'), // or require('tar-async').Tar or require('tar-async/tar')
tape,
contents,
stats;
Expand Down
2 changes: 1 addition & 1 deletion test/untar.js
Expand Up @@ -3,7 +3,7 @@
'use strict';

var fs = require('fs'),
Untar = require('tar-async/untar'),
Untar = require('tar-async/untar'), // or require('tar-async').Untar
untar = new Untar(function (err, header, fileStream) {
if (err) {
return;
Expand Down

0 comments on commit efe83a6

Please sign in to comment.