Skip to content

Commit

Permalink
Finish ESM refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBaryoPX committed Oct 13, 2024
1 parent cda9d80 commit 2463460
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/obfuscation-detector.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env node
import fs from 'node:fs';
const detectObfuscation = require(__dirname + '/../src');
import {fileURLToPath} from 'node:url';
import {detectObfuscation} from './../src/index.js';

if (require.main === module) {
if (process.argv[1] === fileURLToPath(import.meta.url)) {
try {
const args = process.argv.slice(2);
if (args.length) {
Expand Down

0 comments on commit 2463460

Please sign in to comment.