0.0.6 • Published 6 months ago

@kobold/excel v0.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
6 months ago

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
}