canirequire › Dual (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.
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.
| Runtime | require("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.4 | pending | pending |
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).
| Versions | Format | First published |
|---|---|---|
| 2.7.35 | Dual (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
- minimatch 10.2.6Dual
- brace-expansion 5.0.9Dual
- lru-cache 11.5.2Dual
- glob 13.0.6Dual
- eslint-visitor-keys 5.0.1Dual
- yallist 5.0.0Dual
- balanced-match 4.0.4Dual
- js-yaml 5.4.1Dual
Similar popularity
- css-split-webpack-plugin 0.2.6CommonJS
- babel-plugin-transform-jsbi-to-bigint 1.4.2CommonJS
- less-plugin-sass2less 1.2.0CommonJS
- acertea 1.1.6No entry
- anakjalanan 1.1.4CommonJS
- @babel/types 8.0.4ESM-only
- @babel/parser 8.0.4ESM-only
- @babel/helper-validator-identifier 8.0.4ESM-only