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

fs-hardlink-win

v1.0.17

Published

Windows hardlink inspection tool / Windows 硬連結檢查工具

Readme

fs-hardlink-win

Windows hardlink inspection tool. List all hardlinks for a specified file. Windows 硬連結檢查工具。可以列出指定檔案的所有硬連結。

Features / 主要功能

  • List all hardlinks for a file / 檢查硬連結列表
  • Async and sync operations / 支援異步和同步操作
  • Uses Windows fsutil command / 使用 fsutil 命令
  • Built-in output processing / 內建輸出處理

Install / 安裝

yarn add fs-hardlink-win
yarn-tool add fs-hardlink-win
yt add fs-hardlink-win
pnpm add fs-hardlink-win
npm install fs-hardlink-win

Quick Start / 快速開始

import { winHardlinkList, winHardlinkListSync } from 'fs-hardlink-win';

// Async / 異步
const hardlinks = await winHardlinkList('C:\\path\\to\\file.txt');
console.log(hardlinks);
// Output: ['C:\\path\\to\\file.txt', 'C:\\another\\path\\hardlink.txt']

// Sync / 同步
const hardlinksSync = winHardlinkListSync('C:\\path\\to\\file.txt');
console.log(hardlinksSync);

// With options / 使用選項
const hardlinksWithCwd = await winHardlinkList('file.txt', {
  cwd: 'C:\\some\\directory'
});

API

winHardlinkList(file, options?)

Lists all hardlinks for a file asynchronously using Windows fsutil command. 使用 Windows fsutil 命令異步列出檔案的所有硬連結。

winHardlinkListSync(file, options?)

Lists all hardlinks for a file synchronously using Windows fsutil command. 使用 Windows fsutil 命令同步列出檔案的所有硬連結。

Options / 選項

  • cwd?: string - Working directory for the command / 命令的工作目錄

Note / 注意事項

This module only works on Windows systems with fsutil available. 此模組僅在有 fsutil 可用的 Windows 系統上運作。