/
BGVal
/
reverse-int
Обзор
Документация
Войти
/
BGVal
/
reverse-int
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
postinstall.js
13 строк
475 B
Maksim Shastsel
Initial commit
15 дек 2019, 14:20
15 дек 2019, 14:20
c17f0cc
Код
Авторство
О чём код?
const semver = require('semver'); const colors = require('colors/safe'); const { engines: { node: nodeVersion }} = require('./package'); 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 `) ); }