npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@adpro/milthm-data-reader

v1.1.7

Published

基于 TypeScript 读取 Milthm 存档文件并获取分数,B20等

Downloads

53

Readme

MilthmDataReader

简体中文 | English

不同语言间有冲突或歧义的部分,以中文文本为准

基于 TypeScript 读取 Milthm 新版(3.8.0及以上)存档文件并获取分数,B20等

安装

npm install @adpro/milthm-data-reader # npm

pnpm add @adpro/milthm-data-reader # pnpm

使用

本包仅使用 Milthm 新版存档中 SongRecords 字段内容,以下所有 SongRecords 均指该字段内容

Data

获取存档歌曲信息

AllSongsData

获取存档中所有歌曲的信息

import { Data } from '@adpro/milthm-data-reader';

const data = new Data(SongRecords);

console.log(data.AllSongsData);

GetSpecificSongData

获取存档中特定歌曲的信息

import { Data } from '@adpro/milthm-data-reader';

const data = new Data(SongRecords);

const specificSongData = data.GetSpecificSongData('INFP.mp3');

console.log(specificSongData);

Reality

Reality 有关的计算或功能

ScoreRank

获取根据单曲Reality对所有歌曲所有难度的排序

import { Reality } from '@adpro/milthm-data-reader';

const reality = new Reality(SongRecords);

console.log(reality.ScoreRank);

Reality

获取更精确的Reality

import { Reality } from '@adpro/milthm-data-reader';

const reality = new Reality(SongRecords);

console.log(reality.Reality);

Advice

获取推分建议

import { Reality } from '@adpro/milthm-data-reader';

const reality = new Reality(SongRecords);

console.log(reality.Advice);

Star

获取星级

import { Reality } from '@adpro/milthm-data-reader';

const reality = new Reality(SongRecords);

console.log(reality.Star);

constants

除去剧情铺面之外所有谱面定数

import { beatmap } from '@adpro/milthm-data-reader';

types

对于新版存档文件内容的完整 type 支持

import type { ISave } from '@adpro/milthm-data-reader';

更多请见types/saves.ts

鸣谢

  1. mkzi-nya/Milthm_Score-Checker_python
  2. mkzi-nya/milthm-calculator-web

使用本包的项目

  1. adproqwq/h5-Milthm_save_view

许可证

本仓库签署MIT开源许可证,请在许可证限定范围内使用该项目

附加条款:不得使用本项目源码进行商业活动