@nidomiro/node-modulesystem-check
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

npm (scoped)

Node Modulesystem Check

This package is a simple check for the node modulesystem. It checks if your code is run in commonjs or esm mode.

Installation

npm install @nidomiro/node-modulesystem-check

Usage

CommonJs

const { getModuleSystem } = require("@nidomiro/node-modulesystem-check");

getModuleSystem() // === "commonjs";

ESM

import { getModuleSystem } from "@nidomiro/node-modulesystem-check";

getModuleSystem() // === "esm";

Package Sidebar

Install

npm i @nidomiro/node-modulesystem-check

Weekly Downloads

61

Version

1.0.5

License

MIT

Unpacked Size

3.79 kB

Total Files

11

Last publish

Collaborators

  • nidomiro