'ES import equivalent for require [duplicate]

What would be the ES import equivalent for the following require import.

const {
  Parser,
  transforms: { unwind },
} = require("json2csv");

Right now i am doing it in multiple steps , but is it possible to do that at once in a single line.

import { Parser, transforms } from "json2csv";
const { unwind } = transforms;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source