is-this-module (npm): Detect module system and browser/node
Keywords: detect|commonjs|es6|esm|es modules|browser|node|module system