/
BGVal
/
brackets
Обзор
Документация
Войти
/
BGVal
/
brackets
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
postinstall.js
17 строк
577 B
shastel
Update postinstall script
04 окт 2020, 23:34
04 окт 2020, 23:34
9eb691e
Код
Авторство
О чём код?
const semver = require('semver'); const colors = require('colors/safe'); const { engines: { node: nodeVersion }} = require('./package'); console.log(` If you enjoyed the task, please give it a star: https://github.com/Shastel/brackets `) if (!semver.satisfies(process.version, nodeVersion)) { process.emitWarning( colors.red(` For this task we are strictly recomend you to use node ${nodeVersion}. Now you are using node ${process.version}, if you are using any of features that not supported by node ${nodeVersion}, score won't be submitted `) ); }