@offirmo/universal-debug-api-placeholder
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Offirmo’s Universal Debug API - no op placeholder
Offirmo’s quality seal

npm badge dependencies badge bundle size badge license badge maintenance status badge

This is a minimal, no-operation implementation of Offirmo’s Universal Debug API.

Isomorphic, for node and browser.

Does nothing, minimal code footprint. BUT will transparently yield to any other previously required/imported effective version such as node or browser. Pro tip: for browser, hot-swap this placeholder at run time with the companion webextension!

See overall explanation: Offirmo’s Universal Debug API.

Usage

Use this lib to not bloat your module or webapp/lambda/npx bundle. This no-op implementation will do nothing = display nothing = compute nothing.

However, when an effective implementation is used (see above), this module will silently and automatically forward the effective implementation instead of its own no-op mock.

import {
	getLogger,
	exposeInternal,
	overrideHook,
	addDebugCommand,
	globalThis, // exposed from sub-dependency for convenience
} from '@offirmo/universal-debug-api-placeholder'

Readme

Keywords

Package Sidebar

Install

npm i @offirmo/universal-debug-api-placeholder

Weekly Downloads

7

Version

1.0.1

License

Unlicense

Unpacked Size

19.6 kB

Total Files

18

Last publish

Collaborators

  • offirmo