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

find-to-use

v1.1.0

Published

파일을 열심히 찾아서 문서로 작성해준다.

Readme

find-to-use 🔍

파일 시스템을 검색하여 특정 문자열의 사용 위치를 찾고, 결과를 마크다운 문서로 생성하는 TypeScript 라이브러리입니다.

✨ 주요 기능

  • 🔍 재귀적 파일 시스템 검색
  • 📝 마크다운 형식의 결과 문서 생성
  • 🎯 다중 문자열 검색 지원
  • 📁 폴더별 결과 그룹화
  • ⚡ TypeScript 지원
  • 🔄 ES 모듈 & CommonJS 지원

📦 설치

npm install find-to-use

🚀 사용법

기본 사용

import { search } from 'find-to-use';

const config = {
  targetStrings: ['검색할 문자열1', '검색할 문자열2'],
  includeExtensions: ['.js', '.ts', '.vue', '.jsx', '.tsx'],
  excludeDirs: ['node_modules', 'dist', 'build'],
  excludeFiles: ['test.ts']
};

search(config, 'search_results.md');

설정 옵션

interface SearchConfig {
  targetStrings: string[];    // 검색할 문자열 목록
  includeExtensions: string[]; // 포함할 파일 확장자 목록
  excludeDirs: string[];     // 제외할 디렉토리 목록
  excludeFiles: string[];    // 제외할 파일 목록
}

결과 예시

## 프로젝트명 검색 결과

### 🔗 https://example.com (3건)

#### 📁 src
##### 1. `App.tsx` (line 42)
경로: `src/App.tsx`
```js
const url = 'https://example.com';
2. utils.ts (line 15)

경로: src/utils.ts

export const API_URL = 'https://example.com/api';

## 🔧 설정 예시

### Vue.js 프로젝트에서 사용

```typescript
const config = {
  targetStrings: ['https://api.example.com'],
  includeExtensions: ['.vue', '.js', '.ts'],
  excludeDirs: ['node_modules', 'dist', '.git'],
  excludeFiles: ['*.test.*']
};

search(config, 'api-usage.md');

React 프로젝트에서 사용

const config = {
  targetStrings: ['process.env.REACT_APP_API_URL'],
  includeExtensions: ['.jsx', '.tsx', '.js', '.ts'],
  excludeDirs: ['node_modules', 'build', 'coverage'],
  excludeFiles: ['*.test.*']
};

search(config, 'env-usage.md');

📝 라이선스

MIT

🤝 기여하기

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request