monorepo of power-assert runtime side
Installations
npm install power-assert-util-string-width
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.4.0
NPM Version
6.1.0
Score
99.8
Supply Chain
77.2
Quality
75.2
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
twada
Download Statistics
Total Downloads
63,946,488
Last Day
17,034
Last Week
100,005
Last Month
459,788
Last Year
6,406,049
GitHub Statistics
20 Stars
880 Commits
5 Forks
5 Watching
2 Branches
6 Contributors
Bundle Size
4.39 kB
Minified
1.72 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.2.0
Package Id
power-assert-util-string-width@1.2.0
Size
1.28 kB
NPM Version
6.1.0
Node Version
10.4.0
Publised On
12 Jun 2018
Total Downloads
Cumulative downloads
Total Downloads
63,946,488
Last day
-6.1%
17,034
Compared to previous day
Last week
-10.1%
100,005
Compared to previous week
Last month
-1.9%
459,788
Compared to previous month
Last year
-22.1%
6,406,049
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
1
Calculates width of given string. Treat ambiguous-width characters as fullwidth (= 2
) by default.
USAGE
1var stringWidth = require('power-assert-util-string-width'); 2stringWidth('abcde'); //=> 5 3stringWidth('あいうえお'); //=> 10 4stringWidth('アイウエオ'); //=> 5 5stringWidth('※脚注'); //=> 6 6// stringWidth.narrow treats ambiguous-width characters as narrow (= `1`) 7stringWidth.narrow('※脚注'); //=> 5
INSTALL
1$ npm install --save-dev power-assert-util-string-width
AUTHOR
LICENSE
Licensed under the MIT license.
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 1/22 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 12 are checked with a SAST tool
Score
3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More