Node.js 同步模式下的转换器节点csvtojson不返回json对象

Node.js 同步模式下的转换器节点csvtojson不返回json对象,node.js,Node.js,我正在尝试使用节点csvtojson将csv数据转换为json。 为什么不在异步模式下返回转换为json的字符串 read.me中的代码示例: const strindWithDelimiter='bla;bla;bla' const csv=require('csvtojson') // Async / await usage const jsonArray=await csv().fromString(strindWithDelimiter); console.log( jsonArray)

我正在尝试使用节点csvtojson将csv数据转换为json。 为什么不在异步模式下返回转换为json的字符串

read.me中的代码示例:

const strindWithDelimiter='bla;bla;bla'
const csv=require('csvtojson')
// Async / await usage
const jsonArray=await csv().fromString(strindWithDelimiter);
console.log( jsonArray); <--- receive empty object wtihs node-csvtojson custom options
const strindWithDelimiter='bla;bla;布拉
const csv=require('csvtojson')
//异步/等待使用
const jsonArray=await csv().fromString(strindWithDelimiter);

console.log(jsonArray) 我已经更新到最新版本,一切都很顺利! 是1.1.9