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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cli-kjc

v1.0.4

Published

```sh mkdir my-cli-tool cd my-cli-tool npm init -y ```

Readme

✅ 1. 새 디렉토리 생성 및 초기화

mkdir my-cli-tool
cd my-cli-tool
npm init -y

✅ 2. 실행 파일 만들기 (예: index.js)

// index.js
#!/usr/bin/env node

console.log("안녕하세요! 이건 나만의 CLI입니다!");

✅ 3. package.json 수정 (CLI로 등록)

{
  "name": "my-cli-tool",
  "version": "1.0.0",
  "main": "index.js",
  "bin": {
    "mycli": "./index.js"
  },
  "type": "module" // 선택 사항 (esm 사용 시)
}

✅ 4. 실행 권한 부여

chmod +x index.js
# 유닉스/맥에서 #!/usr/bin/env node가 동작하려면 실행 권한이 필요합니다.

✅ 5. 로컬 테스트

npm link

이제 CLI처럼 실행 가능:


mycli

# 👉 안녕하세요! 이건 나만의 CLI입니다!

✅ 6. 패키지 배포

1. npm login


npm login

2. npm 배포

npm publish

단, 이름이 이미 사용 중인 경우 package.json의 name을 유일하게 바꿔야 합니다.