Mithgol / shee2arr

Uses the xlsx module to convert an Excel sheet to a 2D array.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(a histogram of downloads)

This module (shee2arr) converts an Excel sheet to a 2D array; that Excel sheet has to be returned from the xlsx module, which is also used to parse the sheet.

This module is written in JavaScript and requires Node.js to run.

Installing shee2arr

(npm package version)

  • Latest packaged version: npm install shee2arr

  • Latest githubbed version: npm install https://github.com/Mithgol/shee2arr/tarball/master

The npm package does not contain the tests, they're published on GitHub only.

You may visit https://github.com/Mithgol/shee2arr#readme occasionally to read the latest README because the package's version is not planned to grow after changes when they happen in README only. (And npm publish --force is forbidden nowadays.)

Using shee2arr

When you require() the installed module, you get a function that receives an Excel sheet and returns a 2D array of that sheet's rows and columns:

var shee2arr = require('shee2arr');
var array2D = shee2arr(anExcelSheet);

Testing shee2arr

(build testing status)

It is necessary to install JSHint for testing.

  • You may install JSHint globally (npm install jshint -g) or locally (npm install jshint in the directory of shee2arr).

After that you may run npm test (in the directory of shee2arr). Only the JS code errors are caught; the code's behaviour is not tested.

License

MIT license (see the LICENSE file).

About

Uses the xlsx module to convert an Excel sheet to a 2D array.

License:MIT License


Languages

Language:JavaScript 100.0%