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.

crlf.cjs 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. "use strict";
  2. var __rest = this && this.__rest || function (s, e) {
  3. var t = {};
  4. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
  5. if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  6. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
  7. }
  8. return t;
  9. };
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. const util_1 = require("../util.cjs");
  14. const order = ['end', 'description', 'postType', 'type', 'postName', 'name', 'postTag', 'tag', 'postDelimiter', 'delimiter', 'start'];
  15. function crlf(ending) {
  16. function update(line) {
  17. return Object.assign(Object.assign({}, line), {
  18. tokens: Object.assign(Object.assign({}, line.tokens), {
  19. lineEnd: ending === 'LF' ? '' : '\r'
  20. })
  21. });
  22. }
  23. return _a => {
  24. var {
  25. source
  26. } = _a,
  27. fields = __rest(_a, ["source"]);
  28. return util_1.rewireSource(Object.assign(Object.assign({}, fields), {
  29. source: source.map(update)
  30. }));
  31. };
  32. }
  33. exports.default = crlf;
  34. //# sourceMappingURL=crlf.cjs.map