UI for Zipcoin Blue

index.js 446B

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. var os = require('os');
  3. var nameMap = {
  4. 17: 'High Sierra',
  5. 16: 'Sierra',
  6. 15: 'El Capitan',
  7. 14: 'Yosemite',
  8. 13: 'Mavericks',
  9. 12: 'Mountain Lion',
  10. 11: 'Lion',
  11. 10: 'Snow Leopard',
  12. 9: 'Leopard',
  13. 8: 'Tiger',
  14. 7: 'Panther',
  15. 6: 'Jaguar',
  16. 5: 'Puma'
  17. };
  18. module.exports = function (release) {
  19. release = (release || os.release()).split('.')[0];
  20. return {
  21. name: nameMap[release],
  22. version: '10.' + (Number(release) - 4)
  23. };
  24. };