Sha256: fb8c465590ce51ee63bc937b44260817f3dba06a726e579cb252a7978739f51f

Contents?: true

Size: 401 Bytes

Versions: 54

Compression:

Stored size: 401 Bytes

Contents

let { execSync } = require('child_process')
let pico = require('picocolors')

try {
  let version = parseInt(execSync('npm -v'))
  if (version <= 6) {
    process.stderr.write(
      pico.red(
        'Update npm or call ' +
          pico.yellow('npx browserslist@latest --update-db') +
          '\n'
      )
    )
    process.exit(1)
  }
  // eslint-disable-next-line no-unused-vars
} catch (e) {}

Version data entries

54 entries across 15 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/core-js-compat/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.51 node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.51 node_modules/@babel/plugin-transform-function-name/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.51 node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.51 node_modules/@babel/plugin-transform-object-rest-spread/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.51 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.51 node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/@babel/plugin-transform-object-rest-spread/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/core-js-compat/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/@babel/plugin-transform-function-name/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.50 node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.49 node_modules/jscodeshift/node_modules/@babel/core/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-object-rest-spread/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.49 node_modules/@babel/helper-define-polyfill-provider/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-classes/node_modules/@babel/helper-compilation-targets/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.49 node_modules/core-js-compat/node_modules/browserslist/node_modules/update-browserslist-db/check-npm-version.js
immosquare-cleaner-0.1.49 node_modules/update-browserslist-db/check-npm-version.js