{"id":16057485,"url":"https://github.com/aduth/wweval","last_synced_at":"2025-03-16T06:27:20.723Z","repository":{"id":13606868,"uuid":"16299849","full_name":"aduth/wweval","owner":"aduth","description":"Asynchronous eval using web workers","archived":false,"fork":false,"pushed_at":"2014-01-28T12:32:21.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T22:35:07.590Z","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/aduth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-28T02:23:32.000Z","updated_at":"2014-01-28T12:32:21.000Z","dependencies_parsed_at":"2022-08-30T20:01:12.923Z","dependency_job_id":null,"html_url":"https://github.com/aduth/wweval","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fwweval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fwweval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fwweval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aduth%2Fwweval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aduth","download_url":"https://codeload.github.com/aduth/wweval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835952,"owners_count":20355611,"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-09T03:02:49.795Z","updated_at":"2025-03-16T06:27:20.684Z","avatar_url":"https://github.com/aduth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wweval [![Build Status](https://travis-ci.org/aduth/wweval.png?branch=master)](https://travis-ci.org/aduth/wweval)\n\nwweval is an asynchronous `eval` using web workers, falling back to `eval` in browsers where web workers are unsupported.\n\n```javascript\nwweval('1 + 2', function(result) {\n  console.log('1 + 2 = ' + result); // 3\n});\n```\n\n## Usage\n\n### Browser\n\nDownload wweval.js to your project or install using Bower (`bower install wweval`), then include the file using a `\u003cscript\u003e` tag.\n\n```html\n\u003cscript src=\"/path/to/libs/wweval.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\nwweval('1 + 2', function(result) {\n  console.log('1 + 2 = ' + result); // 3\n});\n\u003c/script\u003e\n```\n\n### RequireJS\n\nDownload wweval.js to your project or install using Bower (`bower install wweval`), then include the file as a dependency to your module.\n\n```javascript\ndefine([\n  'path/to/libs/wweval'\n], function(wweval) {\n  wweval('1 + 2', function(result) {\n    console.log('1 + 2 = ' + result); // 3\n  });\n});\n```\n\n## Attribution\n\nThis is largely inspired by the asynchronous `eval` example on MDN ([link](https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers#Example_.231.3A_Create_a_generic_.22asynchronous_eval%28%29.22)), which unfortunately results in an same-origin violation error in modern browsers.\n\n## License\n\nCopyright 2014 Andrew Duthie.\n\nReleased freely under the MIT license (refer to LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduth%2Fwweval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faduth%2Fwweval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faduth%2Fwweval/lists"}