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.
123456789101112131415 |
- 'use strict';
-
- module.exports = string => {
- if (typeof string !== 'string') {
- throw new TypeError(`Expected a string, got ${typeof string}`);
- }
-
- // Catches EFBBBF (UTF-8 BOM) because the buffer-to-string
- // conversion translates it to FEFF (UTF-16 BOM)
- if (string.charCodeAt(0) === 0xFEFF) {
- return string.slice(1);
- }
-
- return string;
- };
|