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.

setAtRuleParams.js 415B

1234567891011121314151617181920
  1. 'use strict';
  2. const _ = require('lodash');
  3. /** @typedef {import('postcss').AtRule} AtRule */
  4. /**
  5. * @param {AtRule} atRule
  6. * @param {string} params
  7. * @returns {AtRule} The atRulearation that was passed in.
  8. */
  9. module.exports = function setAtRuleParams(atRule, params) {
  10. if (_.has(atRule, 'raws.params')) {
  11. _.set(atRule, 'raws.params.raw', params);
  12. } else {
  13. atRule.params = params;
  14. }
  15. return atRule;
  16. };