2.0.0 • Published 7 years ago

sbp-utils-yml-to-json v2.0.0

Weekly downloads
2
License
MIT
Repository
gitlab
Last release
7 years ago

This package reads Yaml file(s) from a directory and returns a json object

Maintainers

Usage

var ymlToJSON = require('sbp-utils-yml-to-json');

var pipeline = new Pipeline();

pipeline.addStep(ymlToJSON.step());

Custom settings

The step has the following parameters

ParameterRequiredDescriptionDefault
readPathNoPath to the folder containing the yml-files./raw_files
setKeyNoIf true the result will be set to the pipeline key-value settrue
writeFileNoIf true the result will be written to a filetrue
writePathNoPath to the output file folder1: pipeline.getWorkDirPath() 2: ./work_folder)
fileNameNoName of the output file (without file ending)collection

Example

pipeline.addStep(ymlToJSON.step({
	writePath: './some_custom_folder',
	fileName: 'some_name'
}));
2.0.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago