New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browser-ava

Package Overview
Dependencies
Maintainers
0
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-ava

Run ava tests in the browser

  • 2.3.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
495
decreased by-57.25%
Maintainers
0
Weekly downloads
 
Created
Source

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

browser-ava

Run ava tests in the browser

What it does

If your code does not depend on any node api (process, fs, ...) then this runner allows to run your ava test inside the browser.

Running your tests

browser-ava --webkit --chromium --firefox tests/*.mjs

Scrrenshot

limitations

  • only supports ESM

API

Table of Contents

pluralize

Pluralize subjects

Parameters

  • word string subject to be pluralized
  • number number if > 1 pluralize otherwize keep subject alone

Returns string pluralized subject if number > 1

utf8EncodingOptions

Type: BufferEncoding

importsConditionOrder

Order in which imports are searched

exportsConditionOrder

Order in which exports are searched

resolveExports

Find module inside a package.

Parameters

Returns (string | undefined) module file name relative to package

resolveImport

Maps import url from node to browser view.

Parameters

  • name string module to resolve
  • base string where to start resolving

Returns Promise<string> resolved import url

Keywords

FAQs

Package last updated on 11 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc