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

@naverpay/oxfmt-config

v0.0.1

Published

oxfmt configuration for NaverPay projects

Downloads

179

Readme

@naverpay/oxfmt-config

네이버페이 스타일 가이드에 맞게 oxfmt formatter 설정을 커스텀하여 제공합니다.

oxfmt는 oxc(Rust 기반) 포매터로, prettier 를 대체하는 빠른 포매터입니다. @naverpay/oxfmt-config@naverpay/prettier-config · @naverpay/biome-config와 동일한 포매팅 규칙을 제공합니다.

설치 방법

npm install @naverpay/oxfmt-config oxfmt -D

사용 방법

Note: oxfmt 는 extends 키가 없습니다. (oxc#16394) 대신 메인테이너 권장 방식인 oxfmt.config.ts 에서 공유 설정을 import 해서 사용합니다.

프로젝트 루트에 oxfmt.config.ts 파일을 생성하고 @naverpay/oxfmt-config 를 import 합니다.

// oxfmt.config.ts
import {defineConfig} from 'oxfmt'
import config from '@naverpay/oxfmt-config' with {type: 'json'}

export default defineConfig(config)

defineConfig 는 선택사항이지만 타입 체크/자동완성을 제공합니다. with {type: 'json'} import attribute 로 패키지의 .oxfmtrc.json 을 그대로 가져옵니다.

프로젝트 package.json"type": "module" 이 없으면 Node 가 성능 경고를 출력할 수 있습니다(동작에는 영향 없음). "type": "module" 을 추가하면 사라집니다.

일부 규칙만 덮어쓰기

공유 설정을 펼친 뒤 원하는 값만 덮어씁니다.

// oxfmt.config.ts
import {defineConfig} from 'oxfmt'
import config from '@naverpay/oxfmt-config' with {type: 'json'}

export default defineConfig({
    ...config,
    printWidth: 80,
    ignorePatterns: ['dist', 'node_modules'],
})

ignore 는 기본적으로 .gitignore · .prettierignore 를 따르며, 추가로 제외할 경로는 ignorePatterns 로 지정합니다.

CLI

oxfmtoxfmt.config.ts 를 자동으로 탐색하므로 별도 옵션 없이 실행합니다.

// package.json
{
    "scripts": {
        "format": "oxfmt --check .",
        "format:fix": "oxfmt ."
    }
}

기본 동작은 파일을 직접 수정(--write)하는 것이며, --check 는 포매팅 여부만 검사합니다.

JSON 설정만 쓰고 싶다면 (대안)

TS 설정 파일 대신 JSON 만 쓰고 싶다면, -c(--config) 로 패키지의 설정 파일 경로를 직접 가리킬 수 있습니다. (이 경우 로컬 override 는 불가합니다.)

// package.json
{
    "scripts": {
        "format": "oxfmt -c ./node_modules/@naverpay/oxfmt-config/.oxfmtrc.json --check ."
    }
}

lefthook을 사용해서 commit 또는 push 전에 스타일 확인을 자동화할 것을 권장합니다.

Integrating with IDE

  • code-style에서는 Formatting을 위해 oxfmt 를, Code-quality를 위해 oxlint/ESLint 를 사용할 수 있습니다.
  • IDE에서 autofix 하기 위해 아래 설정이 필요합니다.

VSCode

  1. oxc Extension을 설치합니다.
  2. IDE에서 Command Palette(CMD/CTRL + Shift + P)를 열고 settings.json을 입력하여 설정파일을 오픈합니다.
  3. 아래 설정을 추가하면 파일 저장시 oxfmt config에 맞게 autofix 할 수 있습니다.
{
    "oxc.enable": true,
    "oxc.fmt.experimental": true,
    "editor.defaultFormatter": "oxc.oxc-vscode",
    "editor.formatOnSave": true,
    "[typescript]": {
        "editor.defaultFormatter": "oxc.oxc-vscode"
    },
    "[javascript]": {
        "editor.defaultFormatter": "oxc.oxc-vscode"
    }
}

WebStorm

oxc-intellij-plugin을 설치하여 사용할 수 있습니다.