0.0.6 • Published 9 years ago

netfile-extract v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

netfile-extract

This module takes a buffer object containing a Netfile zip export and turns it into an output object as described in the documentation for xlsx-to-row-sheets.

Install

npm install netfile-extract

Example

var netfileExtract = require('netfile-extract');

netfileExtract(zipBuffer, function(err, sheets) {
	// sheets will be an object mapping sheet names to sheets
	// Each sheet is an array of rows
	// Each row is an array of strings

	/*
	{
		sheet1: [
			['id', 'somecolumn'],
			['0', 'first row']
		]
	}
	*/
});

CLI

netfile-extract -o sheets_dir -f csv 2014.zip

The -o option default to the current directory.

netfile-extract -f csv 2014.zip

The output format can be CSV or JSON. It is JSON by default.

netfile-extract 2014.zip

The script can take input from stdin instead of a file.

netfile-download SAC | netfile-extract -f csv
0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago