File: index.d.ts

package info (click to toggle)
node-trim-newlines 3.0.0-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 144 kB
  • sloc: javascript: 61; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (9)
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
declare const trimNewlines: {
	/**
	Trim from the start and end of a string.

	@example
	```js
	import trimNewlines = require('trim-newlines');

	trimNewlines('\nšŸ¦„\r\n');
	//=> 'šŸ¦„'
	```
	*/
	(string: string): string;

	/**
	Trim from the start of a string.

	@example
	```js
	import trimNewlines = require('trim-newlines');

	trimNewlines.start('\nšŸ¦„\r\n');
	//=> 'šŸ¦„\r\n'
	```
	*/
	start(string: string): string;

	/**
	Trim from the end of a string.

	@example
	```js
	import trimNewlines = require('trim-newlines');

	trimNewlines.end('\nšŸ¦„\r\n');
	//=> '\nšŸ¦„'
	```
	*/
	end(string: string): string;
};

export = trimNewlines;