Skip to content

fanlia/xlsx2stream

Repository files navigation

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

About

xlsx to stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published