{"id":17095569,"url":"https://github.com/slavahatnuke/eval.function","last_synced_at":"2025-03-23T17:41:44.749Z","repository":{"id":151749353,"uuid":"170107026","full_name":"slavahatnuke/eval.function","owner":"slavahatnuke","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-11T10:22:02.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T23:31:17.723Z","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/slavahatnuke.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-11T10:06:47.000Z","updated_at":"2019-02-11T10:22:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"29950c8a-3f09-4f0f-a00e-29c3e66a18b1","html_url":"https://github.com/slavahatnuke/eval.function","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavahatnuke%2Feval.function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavahatnuke%2Feval.function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavahatnuke%2Feval.function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavahatnuke%2Feval.function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slavahatnuke","download_url":"https://codeload.github.com/slavahatnuke/eval.function/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144021,"owners_count":20568049,"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-14T14:43:11.410Z","updated_at":"2025-03-23T17:41:44.718Z","avatar_url":"https://github.com/slavahatnuke.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## eval.function\n\nEval function in browser\n\n### JS\n```javascript\n    const evalFunction = require('eval.function');\n\n    const fn = await evalFunction(`\n        function(name) { return 'hello ' + name }\n    `);\n\n    console.log(fn('user')) // hello user\n```\n### HTML\n\n```html\n\u003cscript src=\"https://unpkg.com/eval.function/eval.function.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  (async () =\u003e {\n    const evalFunction = window.EvalFunction;\n\n    const fn = await evalFunction(`\n        function(name) { return 'hello ' + name }\n    `);\n\n    console.log(fn('user')) // hello user\n  })();\n\u003c/script\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavahatnuke%2Feval.function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslavahatnuke%2Feval.function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavahatnuke%2Feval.function/lists"}