I am writing an angular application. So i want to extract a zip file and I am using this
import { Component, OnInit } from '@angular/core';
import * as AdmZip from 'adm-zip';
@Component({
selector: 'newcomp',
templateUrl: './newcomp.component.html',
styleUrls: ['./newcomp.component.css']
})
export class NewcompComponent implements OnInit {
constructor() {
}
ngOnInit() {
};
public xyz() {
var zip = new AdmZip('/home/nityananda/Pictures/abc.zip');
console.log("opened");
};
}
But I am getting this error ERROR TypeError: fss.existsSync is not a function