How to use the decodeStream function from iconv-lite

Find comprehensive JavaScript iconv-lite.decodeStream code examples handpicked from public code repositorys.

1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
    return;
  }
  charset = !buffer || isUtf8(buffer) ? 'utf8' : 'GB18030';
}
if (!iconvDecoder) {
  iconvDecoder = iconv.decodeStream(charset);
  next(iconvDecoder);
}
if (buffer) {
  iconvDecoder.write(buffer);
fork icon998
star icon0
watch icon0

46
47
48
49
50
51
52
53
54
}

const adresses = await getStream.array(pumpify.obj(
  intoStream(sourcePartUpdater.getResourceData('adresses')),
  createGunzip(),
  iconv.decodeStream('utf8'),
  parse(),
  new Transform({objectMode: true, transform: prepareData})
))
fork icon3
star icon7
watch icon3