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

melon-slf

v1.0.1

Published

MelonDCF에서 사용하는 멜론 자체규격 .slf 파일 복호화

Readme

melon-slf

MelonDCF 자체 규격인 SLF 가사 파일을 간단하게 리버싱하는 비공식 라이브러리입니다.

npm version License: MIT

melon-slf는 Melon Player 및 Samsung Music에서 사용하는 자체 싱크가사 데이터 포맷(.slf)를 Node.js 환경에서 쉽게 다룰 수 있도록 JSON 형태로 파싱해 주는 비공식 라이브러리 입니다.


사용하기 전에

이 라이브러리는 개인의 교육 및 학슴용으로 개발되었습니다. 이 프로젝트를 사용함으로써 발생하는 모든 피해나 손실은 사용하는 본인에게 책임이 있습니다.

SLF 파일의 리버싱 로직 및 설명은 src/index.ts 파일의 주석을 참고해주세요.


사용법

아래 설치 명령어를 통해 라이브러리를 설치해주세요.

빠른 시작

import { parseSLF } from "melon-slf";
import * as fs from "fs";

// 1. 멜론 SLF 파일 읽기
const slfBuffer = fs.readFileSync("Smile For You.slf");

// 2. 파싱 함수 실행
const result = parseSLF(slfBuffer);

console.log(result);

출력 구조

{
  "success": true,
  "data": [
    { "timeMs": 11500, "timestamp": "[00:11.50]", "text": "아주 작은 잎 하나가 It's you, yeah" },
    { "timeMs": 17000, "timestamp": "[00:17.00]", "text": "나에게 떨어졌을 때" }
  ]
}

.lrc 형식으로 변환하기

convertLRC(slfResult: SLFResult): string | null;

출력 구조

[00:11.50] 아주 작은 잎 하나가 It's you, yeah
[00:17.00] 나에게 떨어졌을 때

사용예시

[일본어]

https://github.com/user-attachments/assets/9db45c07-98d6-444e-9477-3c7c26d5e100

[한국어]

https://github.com/user-attachments/assets/b3f0734f-d9ab-4649-b88e-a27f8fa5db29


설치

npm install melon-slf
# or
yarn add melon-slf
# or
pnpm add melon-slf

License

This project is licensed under the MIT License.