A simple Node.js wrapper for Blue Archive data from SchaleDB, with multi-language support and offline sync.
npm install schalewrapper> A simple Node.js wrapper for Schale.gg Blue Archive data — with multi-language support and local syncing.
---
``bash`
npm install schalewrapper
---
- en (default)jp
- kr
- cn
- tw
- th
- vi
-
---
Before accessing any data, sync all language data locally from SchaleDB:
`js
import { syncAllLanguages } from 'schalewrapper'
await syncAllLanguages()
`
This will download and store data files into:
``
./assets/data/
---
`js
import { findStudentByName } from 'schalewrapper'
const student = await findStudentByName('hoshino', 'en')
console.log(student)
`
`js
import { findStudentById } from 'schalewrapper'
const studentId = await findStudentById(10000, 'en')
console.log(studentId)
`
`js
import { findAllStudent } from 'schalewrapper'
const allStudents = await findAllStudent('en')
console.log(allStudents.length)
`
---
`js
import { findItemByName } from 'schalewrapper'
const itemName = await findItemByName('keystone', 'en')
console.log(itemName)
`
`js
import { findItemById } from 'schalewrapper'
const itemId = await findItemById(1, 'en')
console.log(itemId)
`
`js
import { findAllItems } from 'schalewrapper'
const items = await findAllItems('en')
console.log(items.length)
`
---
All data is stored offline in:
```
assets/data/
You can manually explore or load these files for custom processing.
---