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 1.2KB

123456789101112131415161718192021222324252627282930
  1. import getParser from './parser/index.js';
  2. import descriptionTokenizer from './parser/tokenizers/description.js';
  3. import nameTokenizer from './parser/tokenizers/name.js';
  4. import tagTokenizer from './parser/tokenizers/tag.js';
  5. import typeTokenizer from './parser/tokenizers/type.js';
  6. import getStringifier from './stringifier/index.js';
  7. import alignTransform from './transforms/align.js';
  8. import indentTransform from './transforms/indent.js';
  9. import crlfTransform from './transforms/crlf.js';
  10. import { flow as flowTransform } from './transforms/index.js';
  11. import { rewireSpecs, rewireSource, seedBlock, seedTokens } from './util.js';
  12. export * from './primitives.js';
  13. export function parse(source, options = {}) {
  14. return getParser(options)(source);
  15. }
  16. export const stringify = getStringifier();
  17. export { default as inspect } from './stringifier/inspect.js';
  18. export const transforms = {
  19. flow: flowTransform,
  20. align: alignTransform,
  21. indent: indentTransform,
  22. crlf: crlfTransform,
  23. };
  24. export const tokenizers = {
  25. tag: tagTokenizer,
  26. type: typeTokenizer,
  27. name: nameTokenizer,
  28. description: descriptionTokenizer,
  29. };
  30. export const util = { rewireSpecs, rewireSource, seedBlock, seedTokens };