@kobold/excel
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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
}

Package Sidebar

Install

npm i @kobold/excel

Weekly Downloads

28

Version

0.0.6

License

MIT

Unpacked Size

36.4 kB

Total Files

26

Last publish

Collaborators

  • supamiu
  • ackwell