xlsx2stream
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

xlsx2stream

xlsx to stream

Install

npm i xlsx2stream

Usage

esm

import xlsx2stream, { xlsx2csv, xlsx2json } from 'xlsx2stream'

cjs

const { default: xlsx2stream, xlsx2csv, xlsx2json } = await import('xlsx2stream')

nodejs

const filename = 'data.xlsx'

xlsx2stream(filename)
.on('data', console.log)
.on('end', () => console.log('end'))

// to csv
xlsx2csv(filename).pipe(process.stdout)

// to json
xlsx2json(filename).pipe(process.stdout)

Test

node test.js data.xlsx

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i xlsx2stream

Weekly Downloads

20

Version

1.0.7

License

MIT

Unpacked Size

13.4 kB

Total Files

10

Last publish

Collaborators

  • ailnaf