canirequire

canirequireDual (CommonJS + ESM) › aid-guard1

Is aid-guard1 ESM-only? Can you require() it?

aid-guard1

Latest version 2.7.35, published Mar 16, 2024. JSON

Dual (CommonJS + ESM) Dual package — both require() and import work

aid-guard1 publishes both a CommonJS entry and a native ESM entry (ESM added in 2.7.35). require("aid-guard1") and import "aid-guard1" both work on every supported Node.js version and in Bun.

Latest
2.7.35 (Mar 16, 2024)
Module format
Dual (CommonJS + ESM)
Last CommonJS version
2.7.35
Native ESM since
2.7.35
TypeScript types
Bundled
Node engines
not declared
Weekly downloads
315
License
MIT

Does aid-guard1@2.7.35 actually load? Runtime test results

Runtime probe pending for this version. The values below are what package.json declares; they are refreshed once the probe runs.

Runtimerequire("aid-guard1")import "aid-guard1"
Node.js 18✓ expected✓ expected
Node.js 20✓ expected✓ expected
Node.js 22✓ expected✓ expected
Node.js 24✓ expected✓ expected
Node.js 26✓ expected✓ expected
Bun 1.4pendingpending

Install failed in our sandbox: error: No version matching "^43.6.35" found for specifier "material-balance-trade-solar" (but package exists) The rows above show what package.json declares.

How to import aid-guard1

ES modules (import)

import aidGuard1 from "aid-guard1";

CommonJS (require)

const aidGuard1 = require("aid-guard1");

Module format by version

Derived from the type, main and exports fields of every stable release on npm (1 versions; the newest 1 shown).

VersionsFormatFirst published
2.7.35Dual (CommonJS + ESM)Mar 16, 2024

Frequently asked

Is aid-guard1 ESM-only?

aid-guard1@2.7.35 ships CommonJS and ESM builds. aid-guard1 publishes both a CommonJS entry and a native ESM entry (ESM added in 2.7.35). require("aid-guard1") and import "aid-guard1" both work on every supported Node.js version and in Bun.

Can I require aid-guard1?

Yes. aid-guard1 ships a CommonJS entry, so require("aid-guard1") works on every Node.js version, alongside the native ESM entry for import.

Does aid-guard1 ship TypeScript types?

Yes. aid-guard1 bundles its own type declarations; no @types package is needed.

Links

Other dual (commonjs + esm) packages

Similar popularity