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

12345678910111213141516171819
  1. 'use strict';
  2. var mapObj = require('map-obj');
  3. var decamelize = require('decamelize');
  4. module.exports = function (input, separator, options) {
  5. if (typeof separator !== 'string') {
  6. options = separator;
  7. separator = null;
  8. }
  9. options = options || {};
  10. separator = separator || options.separator;
  11. var exclude = options.exclude || [];
  12. return mapObj(input, function (key, val) {
  13. key = exclude.indexOf(key) === -1 ? decamelize(key, separator) : key;
  14. return [key, val];
  15. });
  16. };