{"id":25837267,"url":"https://github.com/devtin/ava-to-json","last_synced_at":"2026-06-15T07:31:46.538Z","repository":{"id":42825074,"uuid":"266789458","full_name":"devtin/ava-to-json","owner":"devtin","description":"Converts AVA tests syntax into JSON","archived":false,"fork":false,"pushed_at":"2023-01-06T06:57:15.000Z","size":855,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T11:11:31.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/devtin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-25T13:42:05.000Z","updated_at":"2020-05-28T01:19:49.000Z","dependencies_parsed_at":"2023-02-05T14:01:30.090Z","dependency_job_id":null,"html_url":"https://github.com/devtin/ava-to-json","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/devtin%2Fava-to-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtin%2Fava-to-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtin%2Fava-to-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devtin%2Fava-to-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devtin","download_url":"https://codeload.github.com/devtin/ava-to-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309091,"owners_count":19941726,"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":"2025-03-01T02:48:06.132Z","updated_at":"2026-06-15T07:31:41.511Z","avatar_url":"https://github.com/devtin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ava2json\n[![tests](https://github.com/devtin/ava-to-json/workflows/test/badge.svg)](https://github.com/devtin/ava-to-json/actions)\n\n\n* [ava2json](#user-content-module_ava2json)\n  * _Methods_\n    * [parseAva(avaString, [options])](#user-content-module_ava2json..parseAva)\n    * [parseFile(file, [options])](#user-content-module_ava2json..parseFile)\n    * [parseFileSync(file, [options])](#user-content-module_ava2json..parseFileSync)\n  * _Other_\n    * [AvaTest](#user-content-module_ava2json..AvaTest)\n\n\u003ca name=\"module_ava2json..AvaTest\"\u003e\u003c/a\u003e\n\n### ava2json~AvaTest\n\n**Properties**\n\n| Name | Type | Description |\n| --- | --- | --- |\n| title | \u003ccode\u003eString\u003c/code\u003e | The AVA test title wrapped inside of the test function |\n| description | \u003ccode\u003eString\u003c/code\u003e | The feature description (if any) added above the test as a JSDoc comment |\n| code | \u003ccode\u003eString\u003c/code\u003e | The code found wrapped in the test function. |\n| flag | \u003ccode\u003eString\u003c/code\u003e | Either `'skip'`, `'only'`, `'todo'` or `null` for none; |\n\n\u003ca name=\"module_ava2json..parseAva\"\u003e\u003c/a\u003e\n\n### ava2json~parseAva(avaString, [options])\n\n| Param | Type | Default | Description |\n| --- | --- | --- | --- |\n| avaString | \u003ccode\u003eString\u003c/code\u003e |  | The source of the AVA test file |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e |  |  |\n| [options.unIndent] | \u003ccode\u003eNumber\u003c/code\u003e | \u003ccode\u003e2\u003c/code\u003e | Positive integer in which the code will be un-indented |\n| [options.testName] | \u003ccode\u003eString\u003c/code\u003e | \u003ccode\u003etest\u003c/code\u003e | The name of the test function to look-up into the code |\n\n**Returns**: \u003ccode\u003eArray.\u0026lt;AvaTest\u0026gt;\u003c/code\u003e - The tests found in the source code  \n\nParses given AVA test source code\n\n\u003ca name=\"module_ava2json..parseFile\"\u003e\u003c/a\u003e\n\n### ava2json~parseFile(file, [options])\n\n| Param | Type | Description |\n| --- | --- | --- |\n| file | \u003ccode\u003eString\u003c/code\u003e | Path to the AVA file |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e | Same options as in [parseAva](parseAva) |\n\n\nParses given AVA file\n\n\u003ca name=\"module_ava2json..parseFileSync\"\u003e\u003c/a\u003e\n\n### ava2json~parseFileSync(file, [options])\n\n| Param | Type | Description |\n| --- | --- | --- |\n| file | \u003ccode\u003eString\u003c/code\u003e | Path to the AVA file |\n| [options] | \u003ccode\u003eObject\u003c/code\u003e | Same options as in [parseAva](parseAva) |\n\n\nParses given AVA file synchronously\n\n\nA module for converting AVA tests syntax into JSON\n\n\n* * *\n\n### License\n\n[MIT](https://opensource.org/licenses/MIT)\n\n\u0026copy; 2020-present Martin Rafael Gonzalez\n\u003ctin@devtin.io\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtin%2Fava-to-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevtin%2Fava-to-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtin%2Fava-to-json/lists"}