Screwdriver.yaml Configuration Parser
Node module for parsing screwdriver.yaml configurations
Usage
npm install screwdriver-config-parser
Parse in Node.js
const parser = require('screwdriver-config-parser');
parser({
yaml: fs.readFileSync('sample.yaml', 'utf-8'),
jobName: 'main'
}, (err, data) => {
fs.writeFileSync('execute.json', JSON.stringify(data.execute));
});
Or via the command line
config-parse path/to/screwdriver.yaml job-name path-to-artifacts-dir
Testing
npm test
License
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.