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

@yu_nami/oxfmt-config

v0.0.2

Published

Oxfmt shared config for @yu_nami projects

Readme

@yu_nami/oxfmt-config

Oxfmt shared config for @yu_nami projects

Oxfmt(Oxc Formatter)向けの共有設定です。スペースインデント / 行幅 120 / ダブルクォートを基本方針としています。

npm install -D @yu_nami/oxfmt-config oxfmt
# or
pnpm add -D @yu_nami/oxfmt-config oxfmt

Requirements

  • Oxfmt: alpha 以降(.oxfmtrc.json / oxfmt.config.ts 対応版)

Usage

[!IMPORTANT] Oxfmt には extends や npm パッケージで設定を共有する仕組みがありません公式ドキュメント)。利用方法は以下の 2 通りです。

A. ファイルをコピーして使う(推奨)

node_modules/@yu_nami/oxfmt-config/.oxfmtrc.json をプロジェクトルートにコピーします。

cp node_modules/@yu_nami/oxfmt-config/.oxfmtrc.json .oxfmtrc.json

B. oxfmt.config.ts で再エクスポートする

プロジェクトルートの oxfmt.config.ts から JSON を読み込んで再エクスポートします(tsconfig.json"resolveJsonModule": true が必要)。

import config from "@yu_nami/oxfmt-config/.oxfmtrc.json" with { type: "json" };

export default config;

プロジェクト固有の上書きが必要な場合:

import base from "@yu_nami/oxfmt-config/.oxfmtrc.json" with { type: "json" };

export default {
  ...base,
  printWidth: 100,
};

設定内容

| 項目 | 設定値 | 説明 | |---|---|---| | printWidth | 120 | 行幅 | | tabWidth | 2 | インデント幅 | | useTabs | false | スペースインデント | | semi | true | 文末セミコロンを付与 | | singleQuote | false | ダブルクォート | | trailingComma | "all" | 末尾カンマを常に付与 | | insertFinalNewline | true | ファイル末尾に改行を付与 | | sortImports | true | import の自動整列を有効 |

Biome の organizeImports に相当する import 整列は、Oxfmt 側の sortImports で有効化しています。


License

MIT © yu_nami