Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

visualwidth

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

visualwidth

unicode character visual width

Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

VisualWidth

This is a unicode character's visual width calculator for javascript.

This module supports node.js, too.

SYNOPSIS

var vw = require('./visualwidth');
console.log(vw.width('あいうabc')); # => 9
console.log(vw.truncate('ほう。hasegawaさん', 7, '...'));  => "ほう..."

Keywords

unicode

FAQs

Package last updated on 27 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts