Skip to content

Latest commit

 

History

History

excel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

kobold

@kobold/excel

NPM

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
}