UNPKG

check-esm

Version:

The module has JS functions to check all imports or required modules and check if the file is a ES Module or a CJS/ JS Module or Script

3 lines (2 loc) 78 B
var test = require('./file.js'); // var tester = import("../test/file.js");