Gathering detailed insights and metrics for shellwords-ts
Gathering detailed insights and metrics for shellwords-ts
Gathering detailed insights and metrics for shellwords-ts
Gathering detailed insights and metrics for shellwords-ts
Manipulate strings according to the word parsing rules of the UNIX Bourne shell.
npm install shellwords-ts
Typescript
Module System
Node Version
NPM Version
98.1
Supply Chain
72.4
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (70.59%)
JavaScript (29.41%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
43 Commits
2 Watchers
6 Branches
1 Contributors
Updated on Dec 20, 2022
Latest Version
3.0.1
Package Id
shellwords-ts@3.0.1
Unpacked Size
10.78 kB
Size
4.29 kB
File Count
6
NPM Version
8.19.3
Node Version
19.1.0
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
A JavaScript port of the Ruby module of the same name, with TypeScript typings. Shellwords provides functions to manipulate strings according to the word parsing rules of the UNIX Bourne shell. Originally forked from jimmycuadra/shellwords, this package is updated to be at parity with a modern reference implementation (Ruby 3.1.2 at the time of writing) and implements Shellwords.join()
, which was missing from the original package. The goal of this is to maintain parity with the Ruby Shellwords
module, so if there is a discrepancy, please file a bug (or even better, a PR).
Add "shellwords-ts" to your package.json
file and run npm install
.
1import Shellwords from "shellwords-ts"; 2 3Shellwords.split("foo 'bar baz'"); // ["foo", "bar baz"] 4Shellwords.escape("What's up?"); // "What\\'s\\ up\\?" 5Shellwords.join(["find", "~/Library/Application Support", "-name", "*.plist"]); // "find \\~/Library/Application\\ Support -name \\*.plist" 6 7Shellwords.split("foo 'bar baz' quu", (rawPart) => { 8 // have access to the chunks of the raw string as it is scanned 9});
Shellwords.escape()
no longer escapes +
; see this commit in the GitHub Ruby repo.No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
9 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
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