exceljs-transform-stream
Parse excel (XLSX) files as a through stream to JSON using exceljs
Last updated 2 years ago by contra .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exceljs-transform-stream 
SYNC missed versions from official npm registry.

exceljs-transform-stream Build Status

Parse excel (XLSX) files as a through stream to JSON using exceljs

Install

$ npm install exceljs-transform-stream

Usage


const exceljsStream = require('exceljs-transform-stream')

const request = require('superagent')
const through = require('through2')

const req = request.get('http://localhost:8000/file.xlsx')
  .pipe(exceljsStream())
  .on('data', (d) => console.log(String(d), 'line'))
  // => {
          row: 'row1',
          date: '2017-02-08T00:00:00.000Z',
          cost: 100,
          notes: 111
        }


const file = fs.createReadStream(__dirname + '/file.xlsx')
file
  .pipe(exceljsStream())
  .on('data', (d) => console.log(String(d), 'line'))
  // => {
          row: 'row1',
          date: '2017-02-08T00:00:00.000Z',
          cost: 100,
          notes: 111
        }

Options

objectMode

Enable objectMode

default: true

License (MIT)

Current Tags

  • 1.2.0                                ...           latest (2 years ago)

7 Versions

  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |