@kobold/core
Kobold core
Last updated a month ago by ackwell .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kobold/core 
SYNC missed versions from official npm registry.

kobold

@kobold/core

Core logic for extracting data from SqPack repositories.

NOTE: If you intend to read data from Final Fantasy XIV, It's strongly recommended you make use of the @kobold/xiv utility package to automate much of the below.

Getting Started

const kobold = new Kobold()

// Add "repositories" - these are the top-level groupings of files, often associated
// with expansions and similar
kobold.addRepository({
	name: 'ffxiv',
	path: 'C:\\path\\to\\sqpack\\ffxiv',
	default: true,
})

// Add "categories" - these are the _types_ of content expected within the SqPacks,
// spanning multiple repositories, such as "exd"
kobold.addCategory('exd', 0x0A)

// Load the file!
const fileBuffer = kobold.loadFileRaw('exd/root.exl')

// Or, load it into a file class to be parsed
class ExcelList extends File {
	constructor({data}: {data: Buffer}) {
		super()

		// ... parse the data ...
	}
}

const rootList = kobold.loadFile('exd/root.exl', ExcelList)

Current Tags

  • 0.0.1                                ...           latest (a month ago)

1 Versions

  • 0.0.1                                ...           a month ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 11
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |