{"id":41380153,"url":"https://github.com/ddo/yew","last_synced_at":"2026-01-23T10:54:44.392Z","repository":{"id":15364320,"uuid":"18095354","full_name":"ddo/yew","owner":"ddo","description":"Generator based flow-control","archived":false,"fork":false,"pushed_at":"2014-03-29T16:49:04.000Z","size":152,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-22T17:02:04.195Z","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/ddo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-25T09:44:52.000Z","updated_at":"2015-06-02T01:20:49.000Z","dependencies_parsed_at":"2022-09-01T14:10:47.180Z","dependency_job_id":null,"html_url":"https://github.com/ddo/yew","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/ddo/yew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fyew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fyew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fyew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fyew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddo","download_url":"https://codeload.github.com/ddo/yew/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddo%2Fyew/sbom","scorecard":{"id":330321,"data":{"date":"2025-08-11","repo":{"name":"github.com/ddo/yew","commit":"f4f7cf78f094afccdf2f1a3dcb5f9cb6fe52bd92"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":"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":"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":"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":"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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE: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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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-18T03:24:36.474Z","repository_id":15364320,"created_at":"2025-08-18T03:24:36.474Z","updated_at":"2025-08-18T03:24:36.474Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28689080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-23T10:54:43.692Z","updated_at":"2026-01-23T10:54:44.384Z","avatar_url":"https://github.com/ddo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"yew\n===\n\n[![NPM version](https://badge.fury.io/js/yew.png)](http://badge.fury.io/js/yew)\n\n[![Coverage Status](https://coveralls.io/repos/ddo/yew/badge.png?branch=master)](https://coveralls.io/r/ddo/yew?branch=master)\n[![Code Climate](https://codeclimate.com/github/ddo/yew.png)](https://codeclimate.com/github/ddo/yew)\n\n![codeship](https://www.codeship.io/projects/653260a0-963c-0131-9e13-4647d55f964d/status)\n\nGenerator based flow-control\n\n##Caution\n\nSince generators is a new feature in JavaScript ES6, so you need:\n\nNode version: ~0.11.x\n\nThen run with ``node --harmony-generators`` flag\n\n##Installation\n    $ npm install yew --save\n\n##Usage\n\n###Async way:\n```js\nvar request = require('request');\n\nrequest({\n    url: 'https://graph.facebook.com/GitHub',\n    method: 'GET',\n    json: true\n}, function(err, res, body) {\n    console.log(body);\n});\n```\n\n###Yew way: (Sync way :smiley:)\n```js\nvar yew     = require('yew');\nvar request = require('request');\n\nyew(function *() {\n    var data = yield [request, {\n        url: 'https://graph.facebook.com/GitHub',\n        method: 'GET',\n        json: true\n    }];\n\n    console.log(data[0]); //err\n    console.log(data[1]); //res\n    console.log(data[2]); //body\n});\n```\n\n##How to use\n\n* ``yield`` an array\n* Array format: [function, argument1 [, argument2, ...]]\n* No need callback function in array\n* Callback of function must be the last argument\n\n##Return\n\n```js\nrequest('https://graph.facebook.com/GitHub', function(err, res, body) {\n})\n```\n\n```js\nvar data = yield [request, 'https://graph.facebook.com/GitHub'];\n\n/*\ndata = [\n    0: err,\n    1: res,\n    2: body\n]\n*/\n```\n\n##Example\n```js\nvar yew     = require('yew');\nvar request = require('request');\n\nyew(function *() {\n    var facebook = yield [request, 'https://graph.facebook.com/facebook'];\n\n    var tj       = yield [request.get, 'https://graph.facebook.com/tjholowaychuk'];\n\n    var github   = yield [request, {\n        url: 'https://graph.facebook.com/GitHub',\n        json: true\n    }];\n\n    console.log(facebook[2]);\n    console.log(tj[2]);\n    console.log(github[2]);\n});\n```\n##Todo\n\n* Error handler\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddo%2Fyew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddo%2Fyew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddo%2Fyew/lists"}