Skip to content

Commit

Permalink
Stop using deprecated module.parent
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 8, 2020
1 parent 726214b commit 7600cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Pdf = require('./lib/pdf-parse.js');

module.exports = Pdf;

let isDebugMode = !module.parent;
let isDebugMode = require.main === module;

//process.env.AUTO_KENT_DEBUG

Expand Down

0 comments on commit 7600cbb

Please sign in to comment.