shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
isModuleSystem
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.is
Check if the current module system the code runs on is one of the passed system names like “esm” or “cjs”.
Params
- systemNames*-(‘esm’|‘cjs’)[]
An array of system names to check against
Return
- -Boolean
true if the current system is one of the passed system names, false otherwise
Example
import { isModuleSystem } from '@blackbyte/sugar/is';
isModuleSystem('esm'); // => true
isModuleSystem('cjs'); // => falseTodo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space