We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9fa03a commit 559d471Copy full SHA for 559d471
lib/archiver.js
@@ -38,6 +38,12 @@ archiver.registerFormat = function(format, module) {
38
}
39
40
formats[format] = module;
41
+
42
+ // backwards compat - to be removed in 0.14
43
+ var compatName = 'create' + format.charAt(0).toUpperCase() + format.slice(1);
44
+ archiver[compatName] = function(options) {
45
+ return archiver.create(format, options);
46
+ };
47
};
48
49
archiver.registerFormat('zip', require('./plugins/zip'));
0 commit comments