UNPKG

343 BJavaScriptView Raw
1#!/usr/bin/env node
2
3var match = process.version.match(/v(\d+)\.(\d+)/)
4var major = parseInt(match[1], 10)
5var minor = parseInt(match[2], 10)
6
7if (major >= 9 || (major === 8 && minor >= 6)) {
8 require('standard-engine').cli(require('../options'))
9} else {
10 console.error('standard: Node 8 or greater is required. `standard` did not run.')
11}