1.0.2 • Published 2 years ago

osu-collection v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

osu-collection

Simply read collections from a file path

Example usage

const osu_collection = require('osu-collection')

let path = 'C:/Path/To/osu!/collection.db'

// Retrieve all collections
let all = osu_collection(path)

// Display all your collections names
console.log(all.collections.map(collection => collection.name))

Cherry pick the best collection using a name

let tech = all.collections.find(collection => collection.name === 'Tech Maps')

Example return

{
    version: '51',
    quantity: '3',
    collections: [
        { name: 'Tech Maps', quantity: 1755, hashes: [] },
        { name: 'big pp', quantity: 3, hashes: [] },
        { name: 'who ranked this', quantity: 7275, hashes: [] },
    ]
}

Hashes

['fcef316d58ddfb5bcf3c2c9302a5bb6c', '5df20097a4c6d22a6e08df5e1f5b3bf4', ... ]