0.0.9 • Published 6 years ago

excel-classificator v0.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

excel-classificator

node wrapper for parsing spreadsheets. Supports xls, xlsx and csv files.

You can install this module using npm:

npm install excel-classificator

Requires python to be installed Requires xlrd and csv python modules pip install xlrd csv chardet

For system-specific installation view the Wiki

API

Arguments

  • inFile - Filepath of the source spreadsheet
  • outFile - Filepath of the source spreadsheet

Example

var excelclassificator = require('excel-classificator');
excelclassificator.to_csv({
  inFile: 'file.xls', // xls, xlsx or csv extension 
  outFile: 'file.csv',
  headerFields: {'billing': ['invoice', 'customer']}
}, function(err, response){
  if(err) console.error(err);
  consol.log(response);
});

Sample output

{'filetype': 'billing', 'numLines': numLines, 'outfile': os.path.abspath(args.outFile)}

Running Tests

There are unit tests in test/ directory. To run test suite first run the following command to install dependencies.

npm install

then run the tests:

grunt nodeunit

NOTE: Install npm install -g grunt-cli for running tests.

License

Copyright (c) 2018 Quique Molla

Licensed under the MIT license.

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago