Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
deferred => {
const stream = createReadStream(__dirname + "/data.jts");
stream.pipe(new JSONTextSequence.parser());
stream.on("end", () => deferred.resolve());
},
{ defer: true }