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

devkits-text-counter

v1.0.0

Published

Count words, characters, lines, and reading time in text

Readme

devkits-text-counter

Count words, characters, lines, paragraphs, and reading time

Installation

npm install -g devkits-text-counter

Or use without installation:

npx devkits-text-counter [args]

Usage

# Count text argument
dk-count "Hello World"

# Count file content
dk-count < file.txt
dk-count < README.md

# Count from stdin
echo "Hello World" | dk-count
cat article.md | dk-count

# Specific counts
dk-count -w < file.txt      # Words only
dk-count -c < file.txt      # Characters only
dk-count -l < file.txt      # Lines only
dk-count --json < file.txt  # JSON output

Output

Characters: 1234 (1100 without spaces)
Words: 200
Lines: 15
Paragraphs: 5
Reading time: 1 min
Speaking time: 1 min 32 sec

Why @devkits/text-counter?

  • ✅ Fast - Instant counting
  • ✅ Zero dependencies - Pure Node.js
  • ✅ Offline - Works without internet
  • ✅ Free - Open source (MIT)
  • ✅ CLI - Use in your terminal
  • ✅ Multiple metrics - words, chars, lines, paragraphs, reading time

Metrics

  • Characters - Total characters (with and without spaces)
  • Words - Word count
  • Lines - Line count
  • Paragraphs - Paragraph count
  • Reading time - Estimated at 200 words per minute
  • Speaking time - Estimated at 130 words per minute

Web Version

Prefer a GUI? Check out the web version: https://devkits-tools.surge.sh/tools/text-counter

  • 84 developer tools in one PWA
  • Works offline
  • No signup required

Pro Features

Upgrade to Pro for advanced features:

  • 📦 Batch Processing
  • 🔗 API Access (1000 req/day free)
  • ☁️ Cloud Sync
  • 🎨 Custom Themes
  • 📊 Advanced Analytics
  • 💬 Priority Support

Price: $9 one-time payment Upgrade: https://devkits-tools.surge.sh/pro Discount: Use code EARLYBIRD-2026 for 20% off

See Also

Part of the DevKits Tools collection — 80+ free developer tools:

Popular Tools

| Tool | npm Package | Description | |------|-------------|-------------| | Base64 | @devkits/base64 | Encode/decode Base64 | | JSON Formatter | @devkits/json-formatter | Format and validate JSON | | Color Converter | @devkits/color-converter | HEX/RGB/HSL conversion | | UUID Generator | @devkits/uuid-generator | Generate unique UUIDs | | Hash Generator | @devkits/hash-generator | MD5, SHA1, SHA256, SHA512 | | Regex Tester | @devkits/regex-tester | Test regex patterns |

Other DevKits Tools


More from DevKits

  • Invoicely — Free invoice generator for freelancers
  • SnapOG — Free OG image generator with 20+ templates
  • API Monitor — Real-time API monitoring

👉 Explore all 80+ developer tools at DevKits Tools

License

MIT © DevKits Team


🚀 API Monitoring for Developers

Build better APIs with API Monitor SaaS — real-time monitoring, alerting, and analytics.

👉 Early Access: $1 pre-order (50% off for life) → https://api-monitor-saas.surge.sh?utm_source=npm&utm_medium=readme&utm_campaign=phase0