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

1234567891011121314
  1. 'use strict';
  2. const minIndent = require('min-indent');
  3. module.exports = string => {
  4. const indent = minIndent(string);
  5. if (indent === 0) {
  6. return string;
  7. }
  8. const regex = new RegExp(`^[ \\t]{${indent}}`, 'gm');
  9. return string.replace(regex, '');
  10. };