canirequire › CommonJS › 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.
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.
| Runtime | require("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).
| Versions | Format | First published |
|---|---|---|
| 1.0.0 – 1.1.0 | CommonJS | Feb 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
- debug 4.4.3CommonJS
- semver 7.8.5CommonJS
- ms 2.1.3CommonJS
- picomatch 4.0.7CommonJS
- ajv 8.20.0CommonJS
- source-map 0.8.0CommonJS
- react-is 19.2.8CommonJS
- readable-stream 4.7.0CommonJS
Similar popularity
- postcss-value-parser 4.2.0CommonJS
- saxes 6.0.0CommonJS
- lightningcss-linux-x64-musl 1.33.0CommonJS
- deepmerge 4.3.1CommonJS
- domelementtype 3.0.0ESM-only
- merge2 1.4.1CommonJS
- side-channel-list 1.0.1CommonJS
- eslint-plugin-react-hooks 7.1.1CommonJS