1.0.5 • Published 2 years ago

@nidomiro/node-modulesystem-check v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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";
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago