PHP 8.2.30
Preview: index.js Size: 568 B
/home/byroehnu/.trash/node_modules11/is-module/index.js

// no idea what these regular expressions do,
// but i extracted it from https://github.com/yahoo/js-module-formats/blob/master/index.js#L18
var ES6ImportExportRegExp = /(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/;

var ES6AliasRegExp = /(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;

module.exports = function (sauce) {
  return ES6ImportExportRegExp.test(sauce)
    || ES6AliasRegExp.test(sauce);
};

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
5 B lrw-r--r-- 2026-02-28 00:26:42
Edit Download
242 B lrw-r--r-- 2026-02-28 00:27:12
Edit Download
568 B lrw-r--r-- 2026-02-28 00:27:02
Edit Download
489 B lrw-r--r-- 2026-02-28 00:26:32
Edit Download
1.54 KB lrw-r--r-- 2026-02-28 00:26:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).