# screwdriver-config-parser

> Node module for parsing screwdriver.yaml configurations

Latest version **12.8.1** (published 2026-09-16) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install screwdriver-config-parser
pnpm add screwdriver-config-parser
yarn add screwdriver-config-parser
bun add screwdriver-config-parser
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 12.8.1 |
| Published | 2026-09-16 |
| First published | 2016-06-27 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 |
| Dependencies | 11 |
| Unpacked size | 86.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | St. John Johnson |
| Maintainers | sd-buildbot, screwdriver, screwdriver-all, stjohnjohnson |
| Keywords | screwdriver, yahoo |

## Links

- npm: https://www.npmjs.com/package/screwdriver-config-parser
- Repository: https://github.com/screwdriver-cd/config-parser
- Issues: https://github.com/screwdriver-cd/screwdriver/issues
- npm.io page: https://npm.io/package/screwdriver-config-parser

## Dependencies (11)

- [joi](https://npm.io/package/joi.md) ^17.13.3
- [clone](https://npm.io/package/clone.md) ^2.1.2
- [js-yaml](https://npm.io/package/js-yaml.md) ^5.2.3
- [tinytim](https://npm.io/package/tinytim.md) ^0.1.1
- [@hapi/hoek](https://npm.io/package/@hapi/hoek.md) ^11.0.7
- [shell-escape](https://npm.io/package/shell-escape.md) ^0.2.0
- [keymbinatorial](https://npm.io/package/keymbinatorial.md) ^3.0.0
- [screwdriver-data-schema](https://npm.io/package/screwdriver-data-schema.md) ^26.0.0
- [screwdriver-workflow-parser](https://npm.io/package/screwdriver-workflow-parser.md) ^6.0.0
- [screwdriver-notifications-email](https://npm.io/package/screwdriver-notifications-email.md) ^5.0.0
- [screwdriver-notifications-slack](https://npm.io/package/screwdriver-notifications-slack.md) ^7.0.0

## Recent versions

- 12.8.1 (latest) — 2026-09-16
- 12.8.0 — 2026-09-02
- 12.7.0 — 2026-09-02
- 12.6.1 — 2026-08-11
- 12.6.0 — 2026-07-28
- 12.5.0 — 2026-05-20
- 12.4.1 — 2026-01-06
- 12.4.0 — 2025-11-07
- 12.3.0 — 2025-07-08
- 12.2.3 — 2025-06-06
- 12.2.2 — 2025-03-10
- 12.2.1 — 2025-03-10
- 12.2.0 — 2025-03-04
- 12.1.0 — 2025-03-04
- 12.0.0 — 2025-02-21
- … 150 more at https://npm.io/package/screwdriver-config-parser/versions

## README

# Screwdriver.yaml Configuration Parser
[![Version][npm-image]][npm-url] ![Downloads][downloads-image] [![Build Status][status-image]][status-url] [![Open Issues][issues-image]][issues-url] ![License][license-image]

> Node module for validating and parsing `screwdriver.yaml` configurations

 - Validates a `screwdriver.yaml` for structural and functional specification
 - Outputs the pipeline's workflowGraph configuration
 - Generates a list of jobs to execute, including:
     - build permutations
     - environment variables to set
     - steps to execute
     - container image to use

## YAML

```yaml
shared:
    environment:
        NODE_ENV: test
    settings:
        email: foo@bar.com

jobs:
    main:
        image: node:18
        steps:
            - init: npm install
            - test: npm test
        requires:
            - ~pr
            - ~commit

    publish:
        environment:
            NODE_TAG: latest
        image: node:4
        steps:
            - bump: npm run bump
            - publish: npm publish --tag $NODE_TAG
            - tag: git push origin --tags
        secrets:
            - NPM_TOKEN
            - GIT_KEY
        requires:
            - main
```

## Usage

```bash
npm install screwdriver-config-parser
```

Parse in Node.js:

```javascript
const parser = require('screwdriver-config-parser');

// Configuration (in YAML form)
parser(fs.readFileSync('screwdriver.yaml')).then((pipeline) => {
    // Workflow for the pipeline
    // pipeline.workflowGraph

    // All the main jobs with the steps to execute and environment variables to set
    // pipeline.jobs.main[].commands
    // pipeline.jobs.main[].environment
    // pipeline.jobs.main[].image

    // All the publish jobs with the steps to execute and environment variables to set
    // pipeline.jobs.publish[].commands
    // pipeline.jobs.publish[].environment
    // pipeline.jobs.publish[].image
});
```

## Testing

```bash
npm test
```

## License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.

[npm-image]: https://img.shields.io/npm/v/screwdriver-config-parser.svg
[npm-url]: https://npmjs.org/package/screwdriver-config-parser
[downloads-image]: https://img.shields.io/npm/dt/screwdriver-config-parser.svg
[license-image]: https://img.shields.io/npm/l/screwdriver-config-parser.svg
[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/screwdriver.svg
[issues-url]: https://github.com/screwdriver-cd/screwdriver/issues
[status-image]: https://cd.screwdriver.cd/pipelines/18/badge
[status-url]: https://cd.screwdriver.cd/pipelines/18

---
_Source: https://npm.io/package/screwdriver-config-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
