Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
import { pathToFileURL } from 'node:url';
|
||||
|
||||
// returns true if the passsed file is being invoked from node,
|
||||
// not imported.
|
||||
export function isMain(importMetaUrl) {
|
||||
return importMetaUrl === pathToFileURL(process.argv[1]).href;
|
||||
}
|
||||
Reference in New Issue
Block a user