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 348B

123456789101112131415
  1. 'use strict';
  2. module.exports = string => {
  3. if (typeof string !== 'string') {
  4. throw new TypeError(`Expected a string, got ${typeof string}`);
  5. }
  6. // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
  7. // conversion translates it to FEFF (UTF-16 BOM)
  8. if (string.charCodeAt(0) === 0xFEFF) {
  9. return string.slice(1);
  10. }
  11. return string;
  12. };