File size: 1,216 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
48
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;
}