check-node-version.js
1  var version = process.version;
2  
3  if (version && parseInt(version.substring(1, version.indexOf('.'))) < 10) {
4    console.warn('The AWS SDK for JavaScript (v2) will no longer support Node.js ' + version
5    + '\nas of November 1, 2021. To continue receiving updates to AWS services'
6    + '\nand bug fixes please upgrade to Node.js 10.x or later.'
7    + '\n\nMore information can be found at: https://a.co/cf10B3y');
8  }