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

1234567891011121314151617181920212223242526
  1. "use strict";
  2. const stringify = require("./stringify");
  3. const parse = require("./parse");
  4. const defaultConfig = {
  5. postcss: "css",
  6. stylus: "css",
  7. babel: "jsx",
  8. xml: "html",
  9. };
  10. function initSyntax (syntax) {
  11. syntax.stringify = stringify.bind(syntax);
  12. syntax.parse = parse.bind(syntax);
  13. return syntax;
  14. }
  15. function syntax (config) {
  16. return initSyntax({
  17. config: Object.assign({}, defaultConfig, config),
  18. });
  19. }
  20. initSyntax(syntax);
  21. syntax.config = defaultConfig;
  22. module.exports = syntax;