canirequire

canirequireCommonJS › possible-typed-array-names

Is possible-typed-array-names ESM-only? Can you require() it?

A simple list of possible Typed Array names.

Last verified Sep 9, 2026 against possible-typed-array-names@1.1.0. JSON

CommonJS CommonJS — require() works on every Node.js version

possible-typed-array-names ships CommonJS only. require("possible-typed-array-names") works everywhere. import "possible-typed-array-names" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.

Latest
1.1.0 (Feb 7, 2025)
Module format
CommonJS
Last CommonJS version
1.1.0
TypeScript types
Bundled
Node engines
>= 0.4
Weekly downloads
84.2M
License
MIT

Does possible-typed-array-names@1.1.0 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("possible-typed-array-names") from a CommonJS file and import "possible-typed-array-names" from an ES module.

Runtimerequire("possible-typed-array-names")import "possible-typed-array-names"
Node.js 18✓ works✓ works
Node.js 20✓ works✓ works
Node.js 22✓ works✓ works
Node.js 24✓ works✓ works
Node.js 26✓ works✓ works
Bun 1.4✓ works✓ works

How to import possible-typed-array-names

ES modules (import)

import possibleTypedArrayNames from "possible-typed-array-names";

Named imports from a CommonJS package only work when Node.js can statically detect them. If a named import fails, use the default import and destructure.

CommonJS (require)

const possibleTypedArrayNames = require("possible-typed-array-names");

Module format by version

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

VersionsFormatFirst published
1.0.0 – 1.1.0CommonJSFeb 19, 2024

Frequently asked

Is possible-typed-array-names ESM-only?

possible-typed-array-names@1.1.0 is a CommonJS package. possible-typed-array-names ships CommonJS only. require("possible-typed-array-names") works everywhere. import "possible-typed-array-names" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.

Can I import possible-typed-array-names with ES module syntax?

Yes. import possibleTypedArrayNames from "possible-typed-array-names" works in Node.js and Bun because they support importing CommonJS modules. Named imports work only when Node.js can statically detect the exports.

Does possible-typed-array-names work in Bun?

Yes. import "possible-typed-array-names" loaded successfully in Bun 1.4 on Sep 9, 2026.

Does possible-typed-array-names ship TypeScript types?

Yes. possible-typed-array-names bundles its own type declarations; no @types package is needed.

Links

Other commonjs packages

Similar popularity