0

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;
Rpant
  • 844
  • 2
  • 12
  • 33

0 Answers0