{"id":16698177,"url":"https://github.com/arlac77/browser-ava","last_synced_at":"2026-05-20T13:12:07.684Z","repository":{"id":37833196,"uuid":"390727136","full_name":"arlac77/browser-ava","owner":"arlac77","description":"run ava test in the browser","archived":false,"fork":false,"pushed_at":"2025-12-13T13:17:26.000Z","size":2959,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T04:51:43.501Z","etag":null,"topics":["ava"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arlac77.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-29T13:07:11.000Z","updated_at":"2025-12-13T13:17:28.000Z","dependencies_parsed_at":"2023-12-22T13:24:10.284Z","dependency_job_id":"69bc6837-2fcd-4607-aa7a-37b25c835c16","html_url":"https://github.com/arlac77/browser-ava","commit_stats":{"total_commits":502,"total_committers":4,"mean_commits":125.5,"dds":0.2549800796812749,"last_synced_commit":"215c593fc3c650c82dc3adb93e55a9d553c6b067"},"previous_names":[],"tags_count":174,"template":false,"template_full_name":null,"purl":"pkg:github/arlac77/browser-ava","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fbrowser-ava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fbrowser-ava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fbrowser-ava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fbrowser-ava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arlac77","download_url":"https://codeload.github.com/arlac77/browser-ava/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Fbrowser-ava/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28012096,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ava"],"created_at":"2024-10-12T17:51:04.061Z","updated_at":"2025-12-24T23:13:45.957Z","avatar_url":"https://github.com/arlac77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/browser-ava.svg)](https://www.npmjs.com/package/browser-ava)\n[![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)\n[![bundlejs](https://deno.bundlejs.com/?q=browser-ava\\\u0026badge=detailed)](https://bundlejs.com/?q=browser-ava)\n[![downloads](http://img.shields.io/npm/dm/browser-ava.svg?style=flat-square)](https://npmjs.org/package/browser-ava)\n[![GitHub Issues](https://img.shields.io/github/issues/arlac77/browser-ava.svg?style=flat-square)](https://github.com/arlac77/browser-ava/issues)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fbrowser-ava%2Fbadge\\\u0026style=flat)](https://actions-badge.atrox.dev/arlac77/browser-ava/goto)\n[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Known Vulnerabilities](https://snyk.io/test/github/arlac77/browser-ava/badge.svg)](https://snyk.io/test/github/arlac77/browser-ava)\n\n# browser-ava\n\nRun ava tests in the browser\n\n## What it does\n\nIf your code does not depend on any node api (process, fs, ...) then this runner allows to run your ava test inside the browser.\n\n### Running your tests\n\n```console\nbrowser-ava --webkit --chromium --firefox tests/*.mjs\n```\n\n![Scrrenshot](docs/screenshot.png)\n\n## limitations\n\n*   only supports ESM\n\n# API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### Table of Contents\n\n*   [pluralize](#pluralize)\n    *   [Parameters](#parameters)\n*   [utf8EncodingOptions](#utf8encodingoptions)\n*   [importsConditionOrder](#importsconditionorder)\n*   [exportsConditionOrder](#exportsconditionorder)\n*   [resolveExports](#resolveexports)\n    *   [Parameters](#parameters-1)\n*   [resolveImport](#resolveimport)\n    *   [Parameters](#parameters-2)\n\n## pluralize\n\nPluralize subjects\n\n### Parameters\n\n*   `word` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** subject to be pluralized\n*   `number` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** if \u003e 1 pluralize otherwize keep subject alone\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** pluralized subject if number \u003e 1\n\n## utf8EncodingOptions\n\nType: BufferEncoding\n\n## importsConditionOrder\n\n*   **See**: {\u003chttps://nodejs.org/dist/latest/docs/api/packages.html#imports}\u003e\n\nOrder in which imports are searched\n\n## exportsConditionOrder\n\n*   **See**: {\u003chttps://nodejs.org/dist/latest/docs/api/packages.html#exports}\u003e\n\nOrder in which exports are searched\n\n## resolveExports\n\nFind module inside a package.\n\n### Parameters\n\n*   `parts` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\u003c[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e**\u0026#x20;\n*   `pkg` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** decoded package.json content\n\nReturns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** module file name relative to package\n\n## resolveImport\n\nMaps import url from node to browser view.\n\n### Parameters\n\n*   `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** module to resolve\n*   `base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** where to start resolving\n\nReturns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))\u003e** resolved import url\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Fbrowser-ava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farlac77%2Fbrowser-ava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Fbrowser-ava/lists"}