Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 386B

1234567891011121314
  1. function isNodeLT(tar) {
  2. tar = (Array.isArray(tar) ? tar : tar.split('.')).map(Number);
  3. let i=0, src=process.versions.node.split('.').map(Number);
  4. for (; i < tar.length; i++) {
  5. if (src[i] > tar[i]) return false;
  6. if (tar[i] > src[i]) return true;
  7. }
  8. return false;
  9. }
  10. module.exports =
  11. isNodeLT('8.6.0')
  12. ? require('./dist/index.js')
  13. : require('./lib/index.js');