{"id":16386364,"url":"https://github.com/tmcw/incremental-eval","last_synced_at":"2025-10-26T11:31:09.054Z","repository":{"id":7254291,"uuid":"8565796","full_name":"tmcw/incremental-eval","owner":"tmcw","description":"run javascript line-by-line","archived":false,"fork":false,"pushed_at":"2020-06-13T23:35:14.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T14:11:51.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://mistakes.io/","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/tmcw.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":"2013-03-04T21:50:52.000Z","updated_at":"2022-06-10T10:17:46.000Z","dependencies_parsed_at":"2022-07-21T14:19:42.830Z","dependency_job_id":null,"html_url":"https://github.com/tmcw/incremental-eval","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/tmcw%2Fincremental-eval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fincremental-eval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fincremental-eval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmcw%2Fincremental-eval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmcw","download_url":"https://codeload.github.com/tmcw/incremental-eval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238319401,"owners_count":19452334,"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-11T04:17:04.916Z","updated_at":"2025-10-26T11:31:03.782Z","avatar_url":"https://github.com/tmcw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## incremental-eval\n\n[![](http://ci.testling.com/tmcw/incremental-eval.png)](http://ci.testling.com/tmcw/incremental-eval)\n\nGiven a string of javascript code, returns the result of running the code\nline-by-line.\n\n## install\n\n    npm install --save incremental-eval\n\n## example\n\n```js\nvar incr = require('incremental-eval');\n\nincr('a = 2'); // [2]\nincr('a = 2\\n a * 2'); // [2, 4]\n\n// supports modifying the scope with with\nincr('a', { a: 2 }); // [2]\n```\n\n### incrementalEval()\n\nTakes a piece of Javascript code, as a string, and returns an array of results\nper-line. If a line does not return results, it is in the array as null.\n\nThe second argument can be an object that is supplied to `with`, so that\n[you can change the scope of the eval](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/with)\n\n## license\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcw%2Fincremental-eval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmcw%2Fincremental-eval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmcw%2Fincremental-eval/lists"}