isCjs

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is

Check if the current module system the code runs on “commonjs” module system.

Return

  1. -Boolean

    true if the current system is esm

Example

import { isCjs } from '@blackbyte/sugar/is';
isCjs(); // => true