stdlib-js

stdlib-js/assert-is-browser

Check if the runtime is a web browser.

JavaScript
2
0
Apache License 2.0

This project provides a simple utility to check if the current runtime environment is a web browser. It's designed for developers working with JavaScript who need to determine whether their code is running in a browser context, particularly useful for writing code that needs to behave differently between browser and Node.js environments.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of stdlib-js/assert-is-browser

Account's avatar
Check if the runtime is Node.js.
Account's avatar
Return the global object.
Account's avatar
Proxies nodejs require in order to allow overriding dependencies during testing.
Account's avatar
tap-producing test harness for node and browsers
Account's avatar
Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale
Account's avatar
Minimal TAP output formatter.

Support the repos that depend on this repository

Top contributors

stdlib-bot's profile
stdlib-bot
78 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet