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.d.ts 614B

1234567891011121314151617181920212223242526
  1. declare const detectNewline: {
  2. /**
  3. Detect the dominant newline character of a string.
  4. @returns The detected newline or `undefined` when no newline character is found.
  5. @example
  6. ```
  7. import detectNewline = require('detect-newline');
  8. detectNewline('foo\nbar\nbaz\r\n');
  9. //=> '\n'
  10. ```
  11. */
  12. (string: string): '\r\n' | '\n' | undefined;
  13. /**
  14. Detect the dominant newline character of a string.
  15. @returns The detected newline or `\n` when no newline character is found or the input is not a string.
  16. */
  17. graceful(string: string): '\r\n' | '\n';
  18. graceful(string?: unknown): '\n';
  19. };
  20. export = detectNewline;