@kobold/excel
v0.0.6
Published
Kobold excel data handler
Downloads
92
Readme
Excel (EXD) sheet reader module for Kobold.
Getting Started
// Set up the excel module instance
const excel = new Excel({kobold})
// Define the shape of the sheet you wish to read
class Status extends Row {
static sheet = 'Status'
name = this.string()
description = this.string()
// ...etc
}
// Load the sheet
const statuses = await excel.getSheet(Status)
// Read in a row
const requiescat = await statuses.getRow(1368)
// ...or lots of them
for await (const status of statuses.getRows({from: 1000, to: 3000})) {
// do stuff
}