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

@willh/caption-convert

v0.1.0

Published

將字幕檔在 .srt、.vtt、.ass 之間互相轉換的命令列工具

Readme

caption-convert

將字幕檔在 .srt.vtt.ass 之間互相轉換的命令列工具。

功能

  • 支援格式:SRT、WebVTT、ASS
  • 將字幕檔轉成另一種格式
  • 無第三方相依套件,直接用 Node.js 執行

環境需求

  • Node.js 18 以上(建議使用 LTS)

安裝

方式一:全域安裝

npm install -g .

安裝後即可使用 caption-convert 指令。

方式二:本機連結(開發用)

npm link

Agent Skill 安裝

若你使用支援 Skills 的 Agent/CLI(例如 Codex CLI),可透過 skills 指令安裝此專案的 Skill:

npx skills add https://github.com/doggy8088/caption-convert --skill caption-convert

使用方式

以 CLI 指令執行

caption-convert input.srt output.vtt

不安裝,直接執行

node .\src\cli.mjs input.vtt output.ass

使用 npx 執行(在專案資料夾內)

npx . input.ass output.srt

參數說明

caption-convert [source] [target]
  • source:來源字幕檔(副檔名需為 .srt / .vtt / .ass
  • target:輸出字幕檔(副檔名需為 .srt / .vtt / .ass

範例

caption-convert demo.srt demo.vtt
caption-convert demo.vtt demo.ass
caption-convert demo.ass demo.srt

注意事項

  • 會依副檔名判斷輸入與輸出格式。
  • 若格式不支援或參數不足,會顯示使用說明。

授權

MIT