File: eol.d.ts

package info (click to toggle)
node-http-server 14.1.1%2B~cs3.14.34-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,856 kB
  • sloc: javascript: 5,677; makefile: 8
file content (47 lines) | stat: -rw-r--r-- 1,169 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
declare module eol {
  /**
   * Normalize line endings in text for the current operating system
   * @return string with line endings normalized to \r\n or \n
   */
  export function auto(text: string): string;

  /**
   * Normalize line endings in text to CRLF (Windows, DOS)
   * @return string with line endings normalized to \r\n
   */
  export function crlf(text: string): string;

  /**
   * Normalize line endings in text to LF (Unix, OS X)
   * @return string with line endings normalized to \n
   */
  export function lf(text: string): string;

  /**
   * Normalize line endings in text to CR (Mac OS)
   * @return string with line endings normalized to \r
   */
  export function cr(text: string): string;

  /**
   * Add linebreak before text
   * @return string with linebreak added before text
   */
  export function before(text: string): string;

  /**
   * Add linebreak after text
   * @return string with linebreak added after text
   */
  export function after(text: string): string;

  /**
   * Split text by newline
   * @return array of lines
   */
  export function split(text: string): Array<string>;
}

declare module "eol" {
  export = eol;
}