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

> aid-guard1@2.7.35 ships CommonJS and ESM builds. Dual package — require() works on every Node.js version we test; import works too.

aid-guard1

Latest version 2.7.35, published Mar 16, 2024.

aid-guard1 publishes both a CommonJS entry and a native ESM entry (ESM added in 2.7.35). require("aid-guard1") should work on every Node.js version the package supports; the runtime probe has not run for this version. import "aid-guard1" works alongside it.

## What to do

1. Nothing to change. require("aid-guard1") should work on every Node.js version the package supports; the runtime probe has not run for this version. import * as aidGuard1 from "aid-guard1" works alongside it; use named imports for what the ESM entry exports.
2. TypeScript: types are bundled; install nothing extra.

## Facts

- 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

## Runtime test results for aid-guard1@2.7.35

Runtime probe pending for this version (install failed: error: No version matching "^43.6.35" found for specifier "material-balance-trade-solar" (but package exists)). The facts above come from package.json.

## How to import aid-guard1

ES modules:

```js
import * as aidGuard1 from "aid-guard1";
```

Namespace import shown because the ESM entry may have no default export; use named imports for what it exports.

CommonJS:

```js
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") should work on every Node.js version the package supports; the runtime probe has not run for this version. import "aid-guard1" works alongside it.

**Can I require aid-guard1?**

Yes. aid-guard1 ships a CommonJS entry alongside the native ESM entry. require("aid-guard1") should work on every Node.js version the package supports; the runtime probe has not run for this version.

**Does aid-guard1 ship TypeScript types?**

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

## Links

- [aid-guard1 on npm](https://www.npmjs.com/package/aid-guard1)
- [Source repository](https://github.com/aid-guard1/aid-guard1)
- [HTML version](https://canirequire.com/package/aid-guard1/)
- [JSON version](https://canirequire.com/package/aid-guard1.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
