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.

label.js 255B

123456789101112
  1. function padRight ( str, len = 0 ) {
  2. return str + ' '.repeat( Math.max( len - str.length, 0 ) );
  3. }
  4. function label( { method, params: [len] } ) {
  5. return padRight( `[${method.toUpperCase()}]`, len );
  6. }
  7. module.exports = {
  8. padRight,
  9. label
  10. };