{"id":20906133,"url":"https://github.com/distributedlife/unfurler","last_synced_at":"2025-03-12T21:29:29.471Z","repository":{"id":22728941,"uuid":"26073643","full_name":"distributedlife/unfurler","owner":"distributedlife","description":"Support functions for unfurling arrays","archived":false,"fork":false,"pushed_at":"2015-05-07T23:47:16.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-20T00:41:23.684Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/distributedlife.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-02T06:35:09.000Z","updated_at":"2015-05-07T23:47:11.000Z","dependencies_parsed_at":"2022-08-21T11:31:03.252Z","dependency_job_id":null,"html_url":"https://github.com/distributedlife/unfurler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Funfurler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Funfurler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Funfurler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/distributedlife%2Funfurler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/distributedlife","download_url":"https://codeload.github.com/distributedlife/unfurler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243297674,"owners_count":20268824,"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","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-18T13:29:11.011Z","updated_at":"2025-03-12T21:29:29.428Z","avatar_url":"https://github.com/distributedlife.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unfurler\nSupport functions for unfurling an array\n\n# Usage\nTakes an array of functions and returns a function that calls all the functions within it.\n\n```javascript\nvar a = function() { console.log(\"a\"); };\nvar b = function() { console.log(\"b\"); };\nvar unfurled = require('unfurler').array([a, b]);\nunfurled();\n//a\n//b\n```\n\nIf given a single function it just returns that function.\n\n```javascript\nvar a = function() { console.log(\"a\"); };\nvar unfurled = require('unfurler').array(a);\nunfurled();\n//a\n```\n\nIf asked for a guarantee it will return an empty function rather than return undefined.\n\n```javascript\nvar unfurled = require('unfurler').arrayWithGuarentee();\nunfurled(); //doesn't crap out.\n```\n\nAnd you can pass functions to the unfurled function and the arguments will be pass down to all the inner functions.\n\n```javascript\nvar a = function(a, b, c) { console.log(a, b, c); };\nvar b = function(a, b, c) { console.log(a * 2, b * 2, c * 2); };\nvar unfurled = require('unfurler').array([a, b]);\nunfurled(1,2,3);\n//1, 2, 3\n//2, 4, 6\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Funfurler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdistributedlife%2Funfurler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdistributedlife%2Funfurler/lists"}