wcwidth
npmv1.0.1Port of C's wcwidth() and wcswidth()
Overview
wcwidth is an npm package that port of C's wcwidth() and wcswidth(). It is extremely widely used, with about 44.3M downloads per week and 1 known dependents in the graph. The latest version is 1.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need port of C's wcwidth() and wcswidth() and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (44.3M weekly downloads).
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of wcwidth.
Dependencies
Runtime (1)
Dev (1)
Used by
Popular packages that depend on wcwidth.
Alternatives to wcwidth
Get the visual width of a string - the number of columns required to display it
Colored symbols for various log levels. Example: `✔︎ Success`
Elegant terminal spinner
🌈Easily set your terminal text color & styles.
Spinners for use in the terminal
Create clickable links in the terminal
Detect whether a terminal supports hyperlinks
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
get dimensions of any image file
get dimensions of any image buffer
Portable, hub-native terminal panel for devframe — readonly output streaming and fully interactive PTY shells (TUI-capable).
The tiniest and the fastest library for terminal output formatting with ANSI colors
Frequently installed together
The semantic version parser used by npm.
Elegant terminal spinner
Info about your dev environment for debugging purposes
check whether a command line command exists in the current environment
No description provided.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Android part of React Native app.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing iOS part of React Native app.
No description provided.
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targeting Apple platforms.
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the configuration of React Native app.
The tiniest and the fastest library for terminal output formatting with ANSI colors
JavaScript parser and stringifier for YAML
Version history
| Version | Published | License |
|---|---|---|
| 1.0.1latest | 10 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.0.0 | 12 years ago | MIT |
Maintainers
Frequently asked questions
How do I install wcwidth?
Run `npm install wcwidth` to add wcwidth to your npm project.
What license is wcwidth released under?
wcwidth is distributed under the MIT license.
How popular is wcwidth?
wcwidth has approximately 44,319,100 downloads per week and 1 known dependent packages.