xlsx-to-spreadsheet

0.0.4 • Public • Published

xlsx-to-spreadsheet

Convert any excel file into a spreadsheet object.

Example

excel

var obj = parse('./simple.xlsx');

// Resulting in:
//
// [
//   {
//     "cell": "B6",
//     "value": 5,
//     "options": {}
//   },
//   {
//     "cell": "B7",
//     "value": 21,
//     "options": {
//       "editable": true
//     }
//   },
//   {
//     "cell": "C7",
//     "value": "= B6+B7",
//     "options": {}
//   }
// ]

Signaling

Since we cannot attach meta data to a given cell, we're going to turn switches based on information that we do get. Right now that's background colors.

  • blue: set options.editable to true

API

parse(path, options)

Parse .xls, .xlsx, .xlsm, .xlsb, .spreadsheetML & .ods files from a given path. options go directly into the parser.

License

(The MIT License)

Copyright (c) 2015 Levered Returns <matt@leveredreturns.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

none

Package Sidebar

Install

npm i xlsx-to-spreadsheet

Weekly Downloads

4

Version

0.0.4

License

none

Last publish

Collaborators

  • mattmueller