Installations
npm install yarn-s
Developer Guide
Typescript
No
Module System
CommonJS
Score
70.4
Supply Chain
98.3
Quality
75.4
Maintenance
100
Vulnerability
81.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
artdecocode
Download Statistics
Total Downloads
13,351
Last Day
18
Last Week
67
Last Month
329
Last Year
4,471
GitHub Statistics
1 Stars
16 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
815.00 B
Minified
468.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.2.3
Package Id
yarn-s@1.2.3
Unpacked Size
80.97 kB
Size
27.86 kB
File Count
24
Total Downloads
Cumulative downloads
Total Downloads
13,351
Last day
63.6%
18
Compared to previous day
Last week
-31.6%
67
Compared to previous week
Last month
43%
329
Compared to previous month
Last year
88.9%
4,471
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
yarn-s
yarn-s
is Run Multiple Yarn Commands In Series.
1yarn add yarn-s
Table Of Contents
API
The package is available by importing its default function:
1import yarnS from 'yarn-s'
async yarnS(
  config: !Config,
): !Array
Run Multiple Yarn Commands In Series.
- config*
!Config
: The config.
Config
: Options for the program.
Name | Type | Description |
---|---|---|
scripts* | !Array<string> | The scripts to execute. |
ScriptResult
: The result of a script.
Name | Type | Description |
---|---|---|
code* | number | The exit code. |
stdout* | string | The stdout of the program. |
stderr* | string | The stderr of the program. |
1import yarnS from 'yarn-s' 2 3(async () => { 4 const res = await yarnS({ 5 scripts: ['pass'], 6 }) 7 console.log(res) 8})()
$ node test/fixture/pass
this file is fine
[ { code: 0,
stdout: '$ node test/fixture/pass\nthis file is fine\n',
stderr: '' } ]
CLI
The package can also be used from the CLI.
Argument | Short | Description |
---|---|---|
scripts | The scripts to execute in series. | |
--help | -h | Print the help information and exit. |
--version | -v | Show the version's number and exit. |
Run Multiple Yarn Commands In Series.
yarn-s script[,script,...]
scripts The scripts to execute in series.
--help, -h Print the help information and exit.
--version, -v Show the version's number and exit.
Example:
yarn-s script-1 script-2
The program will exit with status code 1 if one of the scripts exited with non-zero code.
pass | fail |
---|---|
|
|
yarn-s pass fail
$ node test/fixture/pass
this file is fine
$ node test/fixture/fail
hello worinfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Command "fail" existed with code 1
Copyright & License
GNU Affero General Public License v3.0
© Art Deco™ 2020 |
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
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: GNU Affero General Public License v3.0: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
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
- Warn: no fuzzer integrations found
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 'master'
Score
3
/10
Last Scanned on 2025-02-03
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