add simple demo page
This commit is contained in:
@ -18,7 +18,7 @@ export class ExpressPacker extends Packer {
|
||||
}
|
||||
|
||||
public pack(name: string): void {
|
||||
this.res.attachment(name + ".docx");
|
||||
this.res.attachment(`${name}.docx`);
|
||||
super.pack(this.res);
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ export class LocalPacker extends Packer {
|
||||
}
|
||||
|
||||
public pack(path: string): void {
|
||||
this.stream = fs.createWriteStream(path);
|
||||
this.stream = fs.createWriteStream(`${path}.docx`);
|
||||
super.pack(this.stream);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user