{"id":20209850,"url":"https://github.com/rask/gulp-yaml-data","last_synced_at":"2025-08-30T17:08:59.061Z","repository":{"id":57259553,"uuid":"67604217","full_name":"rask/gulp-yaml-data","owner":"rask","description":"Read and use YAML metadata files in Gulp tasks","archived":false,"fork":false,"pushed_at":"2016-09-07T12:28:04.000Z","size":3,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-05T16:42:28.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rask.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-07T12:23:56.000Z","updated_at":"2018-10-01T14:46:14.000Z","dependencies_parsed_at":"2022-08-25T04:50:13.167Z","dependency_job_id":null,"html_url":"https://github.com/rask/gulp-yaml-data","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rask/gulp-yaml-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fgulp-yaml-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fgulp-yaml-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fgulp-yaml-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fgulp-yaml-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rask","download_url":"https://codeload.github.com/rask/gulp-yaml-data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rask%2Fgulp-yaml-data/sbom","scorecard":{"id":762379,"data":{"date":"2025-08-11","repo":{"name":"github.com/rask/gulp-yaml-data","commit":"c4a86a4ec4bed2f622a2267f23fdcdf58033ce1c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T23:47:38.720Z","repository_id":57259553,"created_at":"2025-08-22T23:47:38.720Z","updated_at":"2025-08-22T23:47:38.720Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878320,"owners_count":25008336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T05:43:01.457Z","updated_at":"2025-08-30T17:08:59.043Z","avatar_url":"https://github.com/rask.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-yaml-data\n\nThis Gulp plugin can be used to import metadata from YAML files into\na stream. This allows templates to read data from a wanted property in\nthe streamed file.\n\n## Installation\n\n    $ npm install --save-dev gulp-yaml-data\n    \n## Usage\n\nThis example shows how to convert Markdown to HTML, and use `gulp-wrap`\nto generate a lodash template from the converted Markdown.\n\n`markdown/index.md`\n\n```markdown\n# Index page\n\nHello world.\n```\n\n`config.yaml`\n\n```yaml\nsite_title: Foo Bar\n```\n\n`gulpfile.js`\n\n```js\nvar gulp = require('gulp');\nvar yamlData = require('gulp-yaml-data');\nvar md2html = require('gulp-markdown');\nvar wrap = require('gulp-wrap');\n\ngulp.task('markdown', function ()\n{\n    // Read all template files which should be infused with\n    return gulp.src('markdown/*.html')\n    \n        // Read data from config.yaml and set to a property named `data`\n        .pipe(yamlData({\n            property: 'data'\n            src: 'config.yaml'\n        })\n        \n        // Convert Markdown to HTML\n        .pipe(md2html())\n        \n        // Wrap generated HTML to a HTML lodash template\n        .pipe(wrap({\n            src: 'templates/template.html'\n        }))\n        \n        // Output to directory `website`\n        .pipe(gulp.dest('website');\n});\n```\n\nThe template file referenced in `gulp-wrap` (`templates/template.html`)\ncould look a little something like this:\n\n```html\n\u003c!DOCTYPE html\u003e\n\n\u003chtml\u003e\n\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003e\u003c%= site_title %\u003e\u003c/title\u003e\n    \u003c/head\u003e\n    \n    \u003cbody\u003e\n        \u003c%= contents %\u003e\n    \u003c/body\u003e\n\n\u003c/html\u003e\n```\n\nWhen you run `gulp markdown` the following file should appear inside\n`public/index.html`:\n\n```html\n\u003c!DOCTYPE html\u003e\n\n\u003chtml\u003e\n\n    \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eFoo Bar\u003c/title\u003e\n    \u003c/head\u003e\n    \n    \u003cbody\u003e\n        \u003ch1\u003eIndex page\u003c/h1\u003e\n        \n        \u003cp\u003eHello world.\u003c/p\u003e\n    \u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n## Options\n\nPass in options as a JS object like so:\n\n```js\nvar options = {\n    property: 'data',\n    src: 'file.yaml',\n    override: false    \n};\n\n...\n.pipe(yamlData(options)\n...\n```\n\n### options.property\n\n`property` marks the property to which to append the YAML data in the\nfile stream. See your templating module of choice for the data property\nname to use.\n\nDefault: `'data'`\n\n### options.src\n\n`src` contains either a filename string on an array of filename strings.\n\nSingle file:\n\n    src: 'config.yaml'\n\nMultiple files:\n\n    src: [\n        'config.yaml',\n        'config.local.yaml'\n    ]\n\nFiles are read in order, and files that are listed later will overwrite\nvalues which are already present in earlier files.\n\nDefault: not defined, you need to explicitly define this in your\ngulpfile.\n\n### options.override\n\nIn case the file stream already has data tied to `options.property`,\nthis option value determines whether the `gulp-yaml-data` data overrides\nthe data set in those. \n\nDefault: `false`\n\n## License\n\nSee LICENSE.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frask%2Fgulp-yaml-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frask%2Fgulp-yaml-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frask%2Fgulp-yaml-data/lists"}