Installations
npm install string-range-expander
Developer Guide
Typescript
Yes
Module System
ESM
Min. Node Version
>=14.18.0
Node Version
21.6.1
NPM Version
10.2.4
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (58.85%)
TypeScript (38.9%)
HTML (2.23%)
Shell (0.02%)
Developer
codsen
Download Statistics
Total Downloads
2,611,748
Last Day
3,065
Last Week
13,401
Last Month
64,413
Last Year
696,204
GitHub Statistics
193 Stars
8,431 Commits
26 Forks
3 Watching
1 Branches
3 Contributors
Package Meta Information
Latest Version
4.0.14
Package Id
string-range-expander@4.0.14
Unpacked Size
26.98 kB
Size
7.59 kB
File Count
7
NPM Version
10.2.4
Node Version
21.6.1
Publised On
31 Jan 2024
Total Downloads
Cumulative downloads
Total Downloads
2,611,748
Last day
-14%
3,065
Compared to previous day
Last week
-21.4%
13,401
Compared to previous week
Last month
14.3%
64,413
Compared to previous month
Last year
32.6%
696,204
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
string-range-expander
Expands string index ranges within whitespace boundaries until letters are met
Install
This package is pure ESM. If you're not ready yet, install an older version of this program, 2.1.0 (npm i string-range-expander@2.1.0
).
1npm i string-range-expander
Quick Take
1import { strict as assert } from "assert"; 2 3import { expander } from "string-range-expander"; 4 5// let's say we have picked the "zzzz" index range - [16, 20] 6// "something>\n\t zzzz <here" 7// | | 8// from to 9// 10// PS. "\n" and "\t" take up a single character's length 11 12assert.deepEqual( 13 expander({ 14 str: "something>\n\t zzzz <here", 15 from: 16, 16 to: 20, 17 ifRightSideIncludesThisThenCropTightly: "<", 18 }), 19 [10, 21], 20);
Documentation
Please visit codsen.com for a full description of the API.
Contributing
To report bugs or request features or assistance, raise an issue on GitHub.
Licence
MIT License.
Copyright © 2010-2024 Roy Revelt and other contributors.
No vulnerabilities found.
Reason
23 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
4.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