1.0.2 • Published 5 years ago

handsontable2json v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

tranform a handsontable array to json, such as

const handsontable2json = require('handsontable2json')
let table = [
  [
    "header1",
    "header2"
  ],
  [
    "data11",
    "data12"
  ],
  [
    "data21",
    "data22"
  ]
]
let ret = handsontable2json.trans(table)
// ret = [
//   {
//     "header1": "data11",
//     "header2": "data12"
//   },
//   {
//     "header1": "data21",
//     "header2": "data22"
//   }
// ]