Gathering detailed insights and metrics for humanize-hash-long-str
Gathering detailed insights and metrics for humanize-hash-long-str
Gathering detailed insights and metrics for humanize-hash-long-str
Gathering detailed insights and metrics for humanize-hash-long-str
Utility package for creating unique strings with fixed length with partial hashing
npm install humanize-hash-long-str
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
6 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Jul 20, 2021
Latest Version
1.4.0
Package Id
humanize-hash-long-str@1.4.0
Unpacked Size
6.59 kB
Size
2.58 kB
File Count
4
NPM Version
6.14.8
Node Version
14.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Use this package for getting stable unique strings with fixed length.
1/** 2 * 3 * @param str - input str, no important how long it is 4 * @param options 5 * maxLength - max length of output value, default is 250 6 * humanizeHash - use hash of words, not for hex, default true 7 * words - count of words in humanized hash 8 * length - count of bytes if not humanized hash 9 */ 10function humanizeHashLongStr(str, options = {}) {}
1const { humanizeHashLongStr } = require('humanize-hash-long-str') 2 3const longStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghjijklmnopqrstuvwxyz' 4 5console.log(humanizeHashLongStr(longStr, { maxLength: 20 }))
Will return ABCD_mango-jazz-papa
, because maximum length is 20 symbols, and humanized hash from full string with 3 words is mango-jazz-papa
You can change words count:
1console.log(humanizeHashLongStr(longStr, { maxLength: 20, words: 2 }))
Will return ABCDEFG_lamp-sixteen
Also, you can use non-humanized hash, instead of words this utility will use simple base64 encoding of raw bytes. For example:
1console.log(humanizeHashLongStr(longStr, { maxLength: 30, humanizeHash: false }))
Will return ABCDEFGHIJKLM_38eJ9+grhaK+cQ==
You can change bytes length:
1console.log(humanizeHashLongStr(longStr, { maxLength: 30, humanizeHash: false, length: 5 }))
Will return ABCDEFGHIJKLMNOPQRSTU_kTSZcAE=
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
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