Skip to content

Commit

Permalink
wip: activate for node 8+
Browse files Browse the repository at this point in the history
  • Loading branch information
nknapp committed Jan 9, 2018
1 parent 5b2f12c commit bc502ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

'use strict'

try {
const versionStr = process.version.match(/v(\d+).*/)[1]
const majorVersion = Number(versionStr)
if (majorVersion >= 8) {
require('trace')
require('clarify')
console.log('Trace and clarify activated')
} catch (e) {
console.log('Trace and clarify not activated due to ' + e.message)
}

0 comments on commit bc502ea

Please sign in to comment.