{"id":15658266,"url":"https://github.com/sail-sail/generate_function","last_synced_at":"2025-03-30T02:42:59.851Z","repository":{"id":57680160,"uuid":"493162463","full_name":"sail-sail/generate_function","owner":"sail-sail","description":"Module that helps you write generated functions in Deno","archived":false,"fork":false,"pushed_at":"2022-06-10T03:14:51.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T00:09:28.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sail-sail.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":"2022-05-17T08:28:37.000Z","updated_at":"2022-05-17T08:57:01.000Z","dependencies_parsed_at":"2022-09-14T11:30:19.561Z","dependency_job_id":null,"html_url":"https://github.com/sail-sail/generate_function","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/sail-sail%2Fgenerate_function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sail%2Fgenerate_function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sail%2Fgenerate_function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sail-sail%2Fgenerate_function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sail-sail","download_url":"https://codeload.github.com/sail-sail/generate_function/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269911,"owners_count":20750319,"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-10-03T13:11:39.315Z","updated_at":"2025-03-30T02:42:59.831Z","avatar_url":"https://github.com/sail-sail.png","language":"TypeScript","readme":"# generate_function\n\nModule that helps you write generated functions in Deno\n\nfork by https://github.com/mafintosh/generate-function\n\n## Disclamer\n\nWriting code that generates code is hard. You should only use this if you really, really, really need this for performance reasons (like schema validators / parsers etc).\n\n## usage\n```ts\nimport { assertEquals } from \"https://deno.land/std@0.139.0/testing/asserts.ts\";\nimport { genfun } from \"https://deno.land/x/generate_function@v1.0.0/mod.ts\";\n\nDeno.test(\"genfun\", function() {\n  const fn = genfun()\n    ('function add(n) {')\n      ('return n + %d', 42)\n    ('}');\n  assertEquals(fn.toString(), 'function add(n) {\\n  return n + 42\\n}');\n});\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsail-sail%2Fgenerate_function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsail-sail%2Fgenerate_function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsail-sail%2Fgenerate_function/lists"}